Function at 0x510390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x510399
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x510f78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 8]
mov esi, eax
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push dword [eax + 0x34]
push dword [eax + 0x30]
mov eax, dword [0x5dfafc]
mov eax, dword [eax]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 4]
call fcn.004ba5d0
push edx
push eax
call fcn.004410e0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x510f94
call fcn.0042bcb0
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510fc0
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x34], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x78
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510fc0
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x70]
add eax, 0x78
mov ecx, 0x320
mov edx, dword [ebp - 0x6c]
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea eax, [ebp - 0x84]
push eax
push ebp
lea eax, [ebp - 0xa0]
call fcn.00510250
pop ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00505f50
lea edx, [ebp - 0xa4]
call fcn.005a76c0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x40]
call fcn.004f4980
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
lea edx, [ebp - 0x9c]
mov eax, dword [0x5e0374]
mov eax, dword [eax]
mov ecx, 2
call fcn.0044cda0
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 0x14]
call fcn.0046c390
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, 3
add eax, 3
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x68]
sub ecx, 0x1a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
add edx, 3
mov eax, dword [ebp - 0x70]
call fcn.0040ae68
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510fdc
mov dl, 1
mov eax, dword [0x469e18]
call fcn.00461c10
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x74]
add dword [ebp - 0x6c], 0x17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 8], 1
jge 0x5105a3
add dword [ebp - 0x6c], 0x28
jmp 0x510c3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x510c3d
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0x10]
call fcn.00429750
mov dword [ebp - 0x30], eax
push 3
push 1
push 1
push 0x4a
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
inc edx
mov ecx, 0x4a
mov eax, dword [ebp - 0x70]
call fcn.0042af80
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00505b30
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.0057fe90
mov dword [ebp - 0x28], eax
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510ff0
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x44], 4
jne 0x510b05
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 2
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x320
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51100c
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x2c], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x16
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x1f4
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x30]
call fcn.00505b60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x48], 0
jne 0x5106e3
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x24]
call fcn.0041ccf0
cmp dword [ebp - 0xac], 0
jne 0x510845
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511028
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x40], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x33
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0xc8
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 4]
lea edx, [ebp - 0xb0]
mov eax, dword [0x5dff84]
mov eax, dword [eax]
call fcn.0044cd20
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511044
mov dl, 1
mov eax, dword [0x50ed30]
call fcn.00461c10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 4]
mov dword [eax + 0x80], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x84], ecx
lea edx, [ebp - 0xb4]
mov eax, dword [0x5dfc0c]
mov eax, dword [eax]
call fcn.0044cd20
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0x19
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x32
mov eax, dword [ebp - 0x70]
add eax, 0x118
mov ecx, 0x12c
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x74]
push 0x51105c
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x48]
call fcn.0041d1b8
push dword [ebp - 0xbc]
push 0x51108c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebp - 0xc0]
call fcn.0041d1e0
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0xb8]
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f350
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x50ff80
jmp 0x510b6b
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511028
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x40], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x33
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x3c
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 4]
lea edx, [ebp - 0xc4]
mov eax, dword [0x5e03d8]
mov eax, dword [eax]
call fcn.0044cd20
lea eax, [ebp - 0xc4]
mov edx, 0x5110a4
call fcn.004073ac
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [0x5e03fc]
mov eax, dword [eax]
mov edx, 0x5110b4
call fcn.00461a50
mov dword [ebp - 0x5c], eax
mov ax, word [0x5110bc]
push eax
mov eax, dword [ebp - 0x5c]
mov edx, 0x1f4
sub edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x5c]
sub edx, dword [eax + 0x4c]
push edx
push 0x7fffffff
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x24]
call fcn.00457c80
cmp dword [ebp - 0xc8], 0x14
setg byte [ebp - 0x51]
cmp byte [ebp - 0x51], 0
jne 0x51092d
mov edx, dword [ebp - 0x24]
mov eax, 0x5110cc
call fcn.00407740
test eax, eax
jle 0x51099d
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5110b4
mov dl, 1
mov eax, dword [0x469430]
call fcn.00461c10
mov dword [ebp - 0x3c], eax
push 0x31
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x29
mov eax, dword [ebp - 0x70]
add eax, 0x55
add eax, 0x2c
mov ecx, 0x1f4
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
call fcn.0046fd80
lea ecx, [ebp - 0xcc]
xor edx, edx
xor eax, eax
call fcn.0040ae98
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x3c]
call fcn.0046f760
add dword [ebp - 0x6c], 0xa
jmp 0x5109ea
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5110b4
mov dl, 1
mov eax, dword [0x4692f8]
call fcn.00461c10
mov dword [ebp - 0x3c], eax
push 0x16
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x32
mov eax, dword [ebp - 0x70]
add eax, 0x55
add eax, 0x2c
mov ecx, 0x1f4
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
call fcn.0046fd80
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 0x3c]
add eax, 4
mov edx, 0x5110dc
call fcn.004069d4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511044
mov dl, 1
mov eax, dword [0x4688b8]
call fcn.00461c10
mov dword [ebp - 0x4c], eax
push 0x19
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
add eax, 0xa
mov ecx, 0x78
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd0]
mov eax, dword [0x5dff80]
mov eax, dword [eax]
call fcn.0044cd20
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x5100a0
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511044
mov dl, 1
mov eax, dword [0x50e68c]
call fcn.00461c10
mov dword [ebp - 0x48], eax
push 0x19
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x14]
sub edx, 0x1d
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
add eax, 0xa
mov ecx, 0x78
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd4]
mov eax, dword [0x5e007c]
mov eax, dword [eax]
call fcn.0044cd20
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x5101d0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 4]
mov dword [eax + 0x78], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x7c], ecx
jmp 0x510b6b
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 8
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x320
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51100c
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x2c], eax
push 0x14
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x6c]
add edx, 0x23
mov eax, dword [ebp - 0x70]
add eax, 0x55
mov ecx, 0x1f4
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.0046c390
lea edx, [ebp - 0xdc]
mov eax, dword [0x5df958]
mov eax, dword [eax]
call fcn.0044cd20
push dword [ebp - 0xdc]
push 0x511108
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
call fcn.005a76c0
push dword [ebp - 0xe0]
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.0040748c
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 4]
add dword [ebp - 0x6c], 0x50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 8]
dec eax
cmp eax, dword [ebp - 0x10]
jle 0x510c31
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x510fdc
mov dl, 1
mov eax, dword [0x469e18]
call fcn.00461c10
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
sub eax, 0
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x68]
sub ecx, 0xb4
mov edx, dword [ebp - 0x6c]
sub edx, 3
mov eax, dword [ebp - 0x70]
call fcn.0040ae68
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x60]
mov byte [eax + 0x22], 1
inc dword [ebp - 0x10]
dec dword [ebp - 0x58]
jne 0x5105c0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x44], 4
jne 0x510c7a
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51111c
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x18], eax
jmp 0x510eb4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511134
mov dl, 1
mov eax, dword [0x5c8588]
call fcn.00461c10
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xe8]
mov eax, dword [0x5df91c]
mov eax, dword [eax]
call fcn.0044cd20
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.004281c0
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0xe
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042af20
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
sub eax, 0x41
mov ecx, 0x3c
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], fcn.00510200
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xec]
mov eax, dword [0x5dfa54]
mov eax, dword [eax]
call fcn.0044cd20
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.004069d4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511134
mov dl, 1
mov eax, dword [0x5c8588]
call fcn.00461c10
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xf4]
mov eax, dword [0x5dfd64]
mov eax, dword [eax]
call fcn.0044cd20
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.004281c0
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0xe
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042af20
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
add eax, 5
mov ecx, 0x3c
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x50ff50
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xf8]
mov eax, dword [0x5dfee4]
mov eax, dword [eax]
call fcn.0044cd20
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.004069d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
sub eax, 2
jne 0x510e9c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51114c
mov dl, 1
mov eax, dword [0x5c8588]
call fcn.00461c10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x510220
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
call fcn.0050ee80
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x94]
push 0x28
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042af20
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
jmp 0x510eb4
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x511164
mov dl, 1
mov eax, dword [0x468cbc]
call fcn.00461c10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x510f23
push 0x28
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042af20
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042af80
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
call fcn.0050ee80
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
add eax, 0xf
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510f7f
lea eax, [ebp - 0x100]
mov edx, 0xd
call fcn.00406670
lea eax, [ebp - 0xc4]
mov edx, 0xa
call fcn.00406670
lea eax, [ebp - 0x84]
call fcn.00406610
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406670
ret