Function at 0x513960
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 0x513969
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 0x514548
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 [0x5ebb28]
mov eax, dword [eax]
mov eax, dword [eax + 0x17c]
mov eax, dword [eax + 4]
call fcn.004badc0
push edx
push eax
call fcn.004413a0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x514564
call fcn.0042ba30
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514590
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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.0042ad00
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, 0x514590
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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.0042ad00
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.00513820
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.00509520
lea edx, [ebp - 0xa4]
call fcn.005af710
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.004f5dc0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
lea edx, [ebp - 0x9c]
mov eax, dword [0x5ec390]
mov eax, dword [eax]
mov ecx, 2
call fcn.0044d060
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.0046c5b0
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.0040ae8c
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5145ac
mov dl, 1
mov eax, dword [0x46a048]
call fcn.00461db0
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 0x513b73
add dword [ebp - 0x6c], 0x28
jmp 0x51420d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x51420d
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.004294e0
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.0042ad00
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x30]
call fcn.00509100
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00587390
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, 0x5145c0
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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 0x5140d5
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.0042ad00
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, 0x5145dc
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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.0042ad00
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.00509130
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
cmp dword [eax + 0x48], 0
jne 0x513cb3
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x24]
call fcn.0041cce4
cmp dword [ebp - 0xac], 0
jne 0x513e15
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5145f8
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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.0042ad00
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 [0x5ebfb0]
mov eax, dword [eax]
call fcn.0044cfe0
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, 0x514614
mov dl, 1
mov eax, dword [0x512300]
call fcn.00461db0
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 [0x5ebc3c]
mov eax, dword [eax]
call fcn.0044cfe0
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.0042ad00
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x74]
push 0x51462c
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x48]
call fcn.0041d1ac
push dword [ebp - 0xbc]
push 0x51465c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
push dword [eax + 0x2c]
push dword [eax + 0x28]
lea eax, [ebp - 0xc0]
call fcn.0041d1d4
push dword [ebp - 0xc0]
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.004074a8
mov edx, dword [ebp - 0xb8]
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f530
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x513550
jmp 0x51413b
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5145f8
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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.0042ad00
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 [0x5ec3f8]
mov eax, dword [eax]
call fcn.0044cfe0
lea eax, [ebp - 0xc4]
mov edx, 0x514674
call fcn.004073c8
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [0x5ec41c]
mov eax, dword [eax]
mov edx, 0x514684
call fcn.00461bf0
mov dword [ebp - 0x5c], eax
mov ax, word [0x51468c]
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.00457e40
cmp dword [ebp - 0xc8], 0x14
setg byte [ebp - 0x51]
cmp byte [ebp - 0x51], 0
jne 0x513efd
mov edx, dword [ebp - 0x24]
mov eax, 0x51469c
call fcn.0040775c
test eax, eax
jle 0x513f6d
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514684
mov dl, 1
mov eax, dword [0x469660]
call fcn.00461db0
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.0042ad00
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.0046ffb0
lea ecx, [ebp - 0xcc]
xor edx, edx
xor eax, eax
call fcn.0040aebc
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x3c]
call fcn.0046f990
add dword [ebp - 0x6c], 0xa
jmp 0x513fba
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514684
mov dl, 1
mov eax, dword [0x469528]
call fcn.00461db0
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.0042ad00
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.0046ffb0
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 0x3c]
add eax, 4
mov edx, 0x5146ac
call fcn.004069f0
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514614
mov dl, 1
mov eax, dword [0x468ae8]
call fcn.00461db0
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.0042ad00
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd0]
mov eax, dword [0x5ebfac]
mov eax, dword [eax]
call fcn.0044cfe0
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], 0x513670
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514614
mov dl, 1
mov eax, dword [0x511c5c]
call fcn.00461db0
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.0042ad00
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea edx, [ebp - 0xd4]
mov eax, dword [0x5ec0a8]
mov eax, dword [eax]
call fcn.0044cfe0
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], 0x5137a0
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 0x51413b
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.0042ad00
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, 0x5145dc
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
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.0042ad00
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.0046c5b0
lea edx, [ebp - 0xdc]
mov eax, dword [0x5eb978]
mov eax, dword [eax]
call fcn.0044cfe0
push dword [ebp - 0xdc]
push 0x5146d8
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
call fcn.005af710
push dword [ebp - 0xe0]
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.004074a8
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 0x514201
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5145ac
mov dl, 1
mov eax, dword [0x46a048]
call fcn.00461db0
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.0040ae8c
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 0x513b90
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 0x51424a
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x5146ec
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
mov dword [ebp - 0x18], eax
jmp 0x514484
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514704
mov dl, 1
mov eax, dword [0x5d3e54]
call fcn.00461db0
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xe8]
mov eax, dword [0x5eb93c]
mov eax, dword [eax]
call fcn.0044cfe0
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.00427ed0
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.0042aca0
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
sub eax, 0x41
mov ecx, 0x3c
call fcn.0042ad00
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.005137d0
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xec]
mov eax, dword [0x5eba78]
mov eax, dword [eax]
call fcn.0044cfe0
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.004069f0
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514704
mov dl, 1
mov eax, dword [0x5d3e54]
call fcn.00461db0
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0xf4]
mov eax, dword [0x5ebd94]
mov eax, dword [eax]
call fcn.0044cfe0
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.00427ed0
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.0042aca0
mov edx, dword [ebp - 0xc8]
add edx, 0x17
mov eax, dword [ebp - 0x68]
sub eax, 0x5a
add eax, 5
mov ecx, 0x3c
call fcn.0042ad00
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], 0x513520
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x3c], 1
lea edx, [ebp - 0xf8]
mov eax, dword [0x5ebf10]
mov eax, dword [eax]
call fcn.0044cfe0
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x44]
add eax, 0x38
call fcn.004069f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
sub eax, 2
jne 0x51446c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51471c
mov dl, 1
mov eax, dword [0x5d3e54]
call fcn.00461db0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x5137f0
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
call fcn.00512450
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.0042aca0
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042ad00
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x74]
jmp 0x514484
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x514734
mov dl, 1
mov eax, dword [0x468eec]
call fcn.00461db0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5144f3
push 0x28
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 8]
call fcn.0042aca0
mov edx, dword [ebp - 0xc8]
sub edx, 0x12
mov eax, dword [ebp - 0x68]
sub eax, 0x96
mov ecx, 0x78
call fcn.0042ad00
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.00512450
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 0x51454f
lea eax, [ebp - 0x100]
mov edx, 0xd
call fcn.0040668c
lea eax, [ebp - 0xc4]
mov edx, 0xa
call fcn.0040668c
lea eax, [ebp - 0x84]
call fcn.0040662c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040668c
ret