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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 8], 0
je 0x511497
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x48], 0
jne 0x51149e
xor eax, eax
jmp 0x5119a5
push 0x2558
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
call edx
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x5114d5
push 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00518510
add esp, 8
xor eax, eax
jmp 0x5119a5
mov ecx, dword [ebp - 0x28]
add ecx, 0x40
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00510530
add esp, 0xc
test eax, eax
jne 0x51150d
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
call edx
add esp, 8
xor eax, eax
jmp 0x5119a5
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x54]
and ecx, 0x61
je 0x511544
push 5
mov edx, dword [ebp + 8]
push edx
call fcn.00518510
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
call ecx
add esp, 8
xor eax, eax
jmp 0x5119a5
mov edx, dword [ebp + 0x10]
and edx, 0x400
jne 0x511591
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x56]
test ecx, ecx
je 0x511591
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x56]
cmp eax, 8
je 0x511591
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518510
add esp, 8
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
call eax
add esp, 8
xor eax, eax
jmp 0x5119a5
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x2550], 0
mov ecx, dword [ebp - 0x28]
xor edx, edx
xor eax, eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x28]
xor edx, edx
xor eax, eax
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x498], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x49c], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x4a0], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x78]
mov edx, dword [edx + 0x7c]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
push 0x1e
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ecx + 0x38]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
call ecx
add esp, 0x14
cmp eax, 0x1e
je 0x51165f
push 0x14
mov edx, dword [ebp + 8]
push edx
call fcn.00518510
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
call ecx
add esp, 8
xor eax, eax
jmp 0x5119a5
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + eax]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [ecx + eax]
shl eax, 8
or edx, eax
mov ecx, 1
shl ecx, 1
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + ecx]
shl ecx, 0x10
or edx, ecx
mov eax, 1
imul ecx, eax, 3
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + ecx]
shl ecx, 0x18
or edx, ecx
cmp edx, 0x4034b50
je 0x5116dc
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.00518510
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
call ecx
add esp, 8
xor eax, eax
jmp 0x5119a5
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + eax + 0x1a]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [ecx + eax + 0x1a]
shl eax, 8
or edx, eax
xor ecx, ecx
add edx, 0x1e
adc ecx, 0
mov eax, 1
imul eax, eax, 0
mov esi, dword [ebp - 0x2c]
movzx eax, byte [esi + eax + 0x1c]
mov esi, 1
shl esi, 0
mov edi, dword [ebp - 0x2c]
movzx esi, byte [edi + esi + 0x1c]
shl esi, 8
or eax, esi
xor esi, esi
add edx, eax
adc ecx, esi
mov eax, dword [ebp - 0x28]
add edx, dword [eax + 0x38]
adc ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x38]
add eax, dword [edx + 0x60]
mov ecx, dword [ecx + 0x3c]
adc ecx, dword [edx + 0x64]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax + 4]
jb 0x5117a6
ja 0x51177b
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx]
jbe 0x5117a6
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00518510
add esp, 8
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
call eax
add esp, 8
xor eax, eax
jmp 0x5119a5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0x48], 0
je 0x511805
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
add eax, dword [ecx + 0x48]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x498], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x64]
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
jmp 0x5118f5
mov edx, dword [ebp + 0x10]
and edx, 0x400
jne 0x5118c9
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + 0x56]
test ecx, ecx
je 0x5118c9
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x64], 0
ja 0x511851
jb 0x511840
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x60], 0x10000
jae 0x511851
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x60]
mov ecx, dword [edx + 0x64]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
jmp 0x51185d
xor edx, edx
mov dword [ebp - 0x44], 0x10000
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
call edx
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x498], ecx
cmp dword [ebp - 0x38], 0
jne 0x5118c7
push 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.00518510
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
call ecx
add esp, 8
xor eax, eax
jmp 0x5119a5
jmp 0x5118d6
mov edx, dword [ebp - 0x28]
xor eax, eax
xor ecx, ecx
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
xor ecx, ecx
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp + 0x10]
and ecx, 0x400
jne 0x5119a2
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 0x56]
test eax, eax
je 0x5119a2
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x4a4], 0
xor edx, edx
jne 0x511913
push 0x8000
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
call eax
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x49c], edx
cmp dword [ebp - 0x3c], 0
jne 0x5119a2
push 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00518510
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x498], 0
je 0x511988
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x498]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
call ecx
add esp, 8
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
call eax
add esp, 8
xor eax, eax
jmp 0x5119a5
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret