Function at 0x529820
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 0x529881
push dword [eax + 0x10]
movzx eax, word [ebp + 0x5c]
push eax
call ecx
add esp, 8
test eax, eax
je 0x52987d
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 0x5298dc
mov eax, 0x81
cmp dx, ax
je 0x5298dc
mov eax, 0x83
cmp dx, ax
je 0x5298dc
mov dword [esp + 0x38], ecx
jmp 0x5298ef
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 0x529928
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 0x52998d
test ecx, ecx
je 0x52998d
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.00526230
add esp, 0x2c
test eax, eax
je 0x529baf
mov ecx, dword [esp + 0x34]
mov eax, 0xffffffff
cmovs ecx, eax
mov dword [esp + 0x34], ecx
test esi, esi
jne 0x529a8a
cmp word [ebp], 0x78
je 0x529a18
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 0x529a8a
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp edi, eax
jne 0x529a52
cmp ecx, edx
jne 0x529a52
cmp edi, 0xfffffffe
jae 0x529a6b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor eax, ebx
test eax, 0xfffffffd
jne 0x529a85
cmp dword [esp + 0x18], edx
jne 0x529a85
mov dword [esp + 0x18], edx
or ebx, ecx
jmp 0x529a8a
cmp edi, 0xfffffffe
jae 0x529a62
cmp ebx, 0xfffffffe
jb 0x529a62
mov dword [esp + 0x18], ecx
mov ebx, edi
mov edi, 0xfffffffe
mov dword [esp + 0x30], edi
cmp eax, 0xfffffffe
jae 0x529a31
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xfffffffe
jb 0x529a35
mov ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jmp 0x529a39
mov ebx, 0xfffffffe
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
and eax, 0xffff0000
cmp eax, 0x80010000
jne 0x529afa
test esi, esi
je 0x529ac5
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 0x52995f
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 0x52995f
mov edi, dword [esp + 0x14]
test esi, esi
jne 0x529b2d
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 0x529b10
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 0x529b5a
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 0x529bbd
mov ecx, dword [esi]
mov eax, 0x7fffffeb
mov edx, dword [esp + 0x10]
sub eax, ecx
cmp eax, edx
jae 0x529bb9
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