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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov edx, dword [eax]
mov esi, dword [esp + 0x64]
mov eax, dword [ebp]
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], 0
mov esi, dword [esi]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x530de1
push dword [eax + 0x10]
movzx eax, word [ebp + 0x5c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x530ddd
mov eax, dword [esp + 0x68]
pop esi
pop ebp
mov dword [eax], 0x85
xor eax, eax
add esp, 0x50
ret
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x6c]
xor ecx, ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], eax
push ebx
lea eax, [ebp + 4]
mov dword [esp + 0x58], edx
mov dword [esp + 0xc], eax
or ebx, 0xffffffff
movzx edx, word [edx]
mov eax, 0x80
push edi
or edi, 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
cmp dx, ax
je 0x530e3c
mov eax, 0x81
cmp dx, ax
je 0x530e3c
mov eax, 0x83
cmp dx, ax
je 0x530e3c
mov dword [esp + 0x38], ecx
jmp 0x530e4f
movzx ecx, word [esi - 4]
lea eax, [esi + 4]
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x28]
mov eax, 0x88
cmp dx, ax
mov edx, dword [esp + 0x8c]
jne 0x530e88
movzx eax, word [esi + 4]
mov dword [esp + 0x44], eax
mov word [esp + 0x54], ax
mov eax, dword [edx + 0x60]
mov dword [esp + 0x50], eax
mov ax, word [edx + 0x5e]
mov word [esp + 0x56], ax
lea eax, [esp + 0x50]
mov dword [edx + 0x60], eax
xor eax, eax
mov dword [esp + 0x40], 0
mov word [esi + 2], ax
lea edi, [esp + 0x10]
lea eax, [ebp*2 + 4]
mov ebp, esi
mov dword [esp + 0x4c], eax
add eax, esi
mov esi, dword [esp + 0x90]
test esi, esi
cmove edi, dword [esp + 0x40]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
je 0x530eed
test ecx, ecx
je 0x530eed
mov esi, 0x7d
mov word [eax], si
mov esi, dword [esp + 0x90]
mov word [eax + 2], cx
add eax, 4
add dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
push dword [esp + 0x48]
lea eax, [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0052d790
add esp, 0x2c
test eax, eax
je 0x53110f
mov ecx, dword [esp + 0x34]
mov eax, 0xffffffff
cmovs ecx, eax
mov dword [esp + 0x34], ecx
test esi, esi
jne 0x530fea
cmp word [ebp], 0x78
je 0x530f78
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
jmp 0x530fea
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp edi, eax
jne 0x530fb2
cmp ecx, edx
jne 0x530fb2
cmp edi, 0xfffffffe
jae 0x530fcb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor eax, ebx
test eax, 0xfffffffd
jne 0x530fe5
cmp dword [esp + 0x18], edx
jne 0x530fe5
mov dword [esp + 0x18], edx
or ebx, ecx
jmp 0x530fea
cmp edi, 0xfffffffe
jae 0x530fc2
cmp ebx, 0xfffffffe
jb 0x530fc2
mov dword [esp + 0x18], ecx
mov ebx, edi
mov edi, 0xfffffffe
mov dword [esp + 0x30], edi
cmp eax, 0xfffffffe
jae 0x530f91
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xfffffffe
jb 0x530f95
mov ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jmp 0x530f99
mov ebx, 0xfffffffe
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
and eax, 0xffff0000
cmp eax, 0x80010000
jne 0x53105a
test esi, esi
je 0x531025
mov eax, dword [esp + 0x68]
add dword [esp + 0x10], 2
movzx ecx, word [edx]
mov eax, dword [eax]
add eax, dword [esp + 0x4c]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x8c]
jmp 0x530ebf
mov ecx, dword [esp + 0x14]
mov eax, 0x78
mov word [ecx], ax
mov eax, ecx
sub eax, ebp
mov ebp, ecx
sar eax, 1
mov word [ecx + 2], ax
mov dword [esp + 0x5c], ecx
movzx ecx, word [edx]
lea eax, [ebp + 4]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x8c]
jmp 0x530ebf
mov edi, dword [esp + 0x14]
test esi, esi
jne 0x53108d
mov esi, edi
sub esi, ebp
sar esi, 1
nop dword [eax + eax]
movzx ecx, word [ebp + 2]
mov eax, ecx
mov word [ebp + 2], si
neg eax
mov esi, ecx
lea ebp, [ebp + eax*2]
test ecx, ecx
jne 0x531070
mov esi, dword [esp + 0x90]
mov eax, 0x79
mov word [edi], ax
mov eax, edi
sub eax, dword [esp + 0x28]
sar eax, 1
mov word [edi + 2], ax
add edi, 4
cmp dword [esp + 0x44], 0
jbe 0x5310ba
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, dword [esp + 0x6c]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
mov dword [eax], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [esp + 0x84]
mov dword [eax], ebx
test esi, esi
je 0x53111d
mov ecx, dword [esi]
mov eax, 0x7fffffeb
mov edx, dword [esp + 0x10]
sub eax, ecx
cmp eax, edx
jae 0x531119
mov eax, dword [esp + 0x70]
mov dword [eax], 0x78
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x50
ret
add ecx, edx
mov dword [esi], ecx
mov eax, dword [esp + 0x34]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret