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

Disassembly:
push 0xffffffffffffffff
push 0x61dbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edx, dword [esp + 0x70]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov esi, 1
mov dword [esp + 0x14], esi
test eax, eax
jne 0x5397f8
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
test esi, esi
je 0x5397d4
mov eax, dword [ecx + 4]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 0x10]
mov edi, dword [edx + 4]
cmp ecx, edi
mov dword [esp + 0x20], 0
jge 0x53981d
cmp dword [esi + 8], edi
jl 0x539a6a
mov edx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
cmp edx, ebp
jge 0x53982b
mov ebx, edx
jmp 0x53982f
mov ebx, ebp
mov ebp, edx
mov eax, dword [esi + 8]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jg 0x53988b
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
cmp ebx, eax
jg 0x539a6a
cmp eax, ebp
jge 0x539a12
cmp eax, edx
jne 0x5398d6
cmp edi, ecx
jge 0x5398b6
mov edi, dword [esp + 0x70]
xor ebx, ebx
push ebx
push edi
mov ecx, esi
call fcn.0052f330
test eax, eax
je 0x539891
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ebx
mov dword [0x67acbc], ebx
mov dword [0x67e9c4], ecx
jmp 0x539a6a
mov dword [esp + 0x18], eax
jmp 0x539842
mov eax, dword [esi + 0x10]
sub eax, dword [edi + 4]
cmp dword [0x67acbc], eax
jle 0x5399f9
mov edx, dword [esi + 0x14]
mov dword [0x67acbc], eax
mov dword [0x67e9c4], edx
jmp 0x5399f9
cmp eax, edx
jne 0x5398d6
cmp edi, ecx
jne 0x5398d6
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [0x67acbc], eax
mov eax, dword [esi + 0x14]
mov dword [0x67e9c4], eax
jmp 0x539a6a
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x539927
cmp edi, dword [esi + 8]
jge 0x53991e
mov edi, dword [esp + 0x70]
xor ebx, ebx
push ebx
push edi
mov ecx, esi
call fcn.0052f330
test eax, eax
jne 0x539873
mov eax, dword [esi + 8]
sub eax, dword [edi + 4]
cmp dword [0x67acbc], eax
jle 0x5399f9
mov edx, dword [esi + 0x14]
mov dword [0x67acbc], eax
mov dword [0x67e9c4], edx
jmp 0x5399f9
cmp eax, ecx
jne 0x539927
cmp edi, dword [esi + 8]
je 0x5398be
mov ebx, dword [esp + 0x70]
xor edi, edi
push edi
push ebx
mov ecx, esi
call fcn.0052f330
test eax, eax
je 0x539952
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [0x67acbc], edi
mov dword [0x67e9c4], ecx
jmp 0x539a6a
mov eax, dword [esp + 0x18]
sub eax, dword [ebx + 4]
cmp eax, dword [0x67acbc]
jg 0x5399f9
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
inc edx
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], edx
call fcn.0052eeb0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov dword [esp + 0x74], 0
call fcn.0052f2a0
test eax, eax
jle 0x5399e0
mov edi, 1
cmp eax, edi
mov eax, dword [esp + 0x38]
jne 0x5399b6
sub eax, dword [esp + 0x28]
jmp 0x5399c8
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
sub eax, edx
sub ecx, edx
cmp eax, ecx
jl 0x5399c8
mov eax, ecx
cmp dword [0x67acbc], eax
jle 0x5399e4
mov edx, dword [esi + 0x14]
mov dword [0x67acbc], eax
mov dword [0x67e9c4], edx
jmp 0x5399e4
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], 0xffffffff
call fcn.0052ee80
test edi, edi
je 0x539a6a
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x539a5e
mov dword [eax], 0
mov dword [eax + 4], esi
jmp 0x539a60
jne 0x539a6a
cmp eax, edx
jne 0x539a20
cmp edi, ecx
je 0x5398be
cmp eax, dword [esi + 4]
jne 0x539a47
cmp edi, dword [esi + 8]
jne 0x539a47
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], 1
mov dword [0x67acbc], 0
mov dword [0x67e9c4], ecx
jmp 0x539a6a
mov edx, dword [esp + 0x70]
push 0
push edx
mov ecx, esi
call fcn.0052f330
test eax, eax
je 0x539a6a
jmp 0x5398be
xor eax, eax
mov ecx, dword [esp + 0x78]
push eax
call fcn.00538fb0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [ecx + 4], eax
test eax, eax
jne 0x5397f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret