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

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x28]
mov eax, 1
push ebx
push ebp
push esi
add ecx, 6
xor ebp, ebp
shl eax, cl
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
mov ecx, dword [edi + 0x7c]
mov eax, dword [edi + 0x78]
add ecx, 3
lea esi, [eax + ecx*4]
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
mov ecx, dword [edi + 0x80]
test ecx, 0xfffffffc
jbe 0x53a1ee
mov eax, 2
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [esp + 0x14], edx
cmp dword [edi + 0x7c], edx
jbe 0x53a1c6
mov ebx, dword [esi]
test ebx, ebx
je 0x53a1b1
mov ecx, dword [edi + 0x8c]
mov eax, dword [edi + 0x74]
imul ecx, ebp
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x24], eax
test ebx, 0x200010
jne 0x539d9b
mov ebp, ebx
and ebp, 0x1ef
je 0x539d9b
mov eax, dword [eax]
mov ecx, 0
cdq
mov ebx, eax
mov eax, dword [edi + 0x6c]
xor ebx, edx
sub ebx, edx
and ebx, dword [esp + 0x18]
movzx eax, byte [eax + ebp]
setne cl
add eax, 7
cmp byte [esp + 0x40], 1
push ecx
push edi
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x539c91
call fcn.0053c370
jmp 0x539c96
call fcn.0053c650
add esp, 8
test ebx, ebx
je 0x539d8f
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x80000
shr ebx, 2
and ebx, 0x20000
or ebx, eax
mov eax, ecx
and eax, 0x400000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x40000
shr ebx, 2
or ebx, eax
and ecx, 0xaa
shr ebx, 0xe
or ebx, ecx
mov ecx, dword [esp + 0x38]
movzx eax, byte [ebx + 0x601cd8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ebp, eax
cdq
xor eax, edx
shr ebp, 0x1f
sub eax, edx
test ecx, ecx
je 0x539d0d
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ed8]
jmp 0x539d18
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fd8]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x539d3c
push ebp
push edi
call fcn.0053c370
jmp 0x539d4c
movzx eax, byte [ebx + 0x601dd8]
xor eax, ebp
push eax
push edi
call fcn.0053c650
mov ecx, dword [edi + 0x7c]
mov eax, ebp
or dword [esi - 4], 0x20
add esp, 8
shl eax, 0x13
or eax, 0x10
or dword [esi], eax
or dword [esi + 4], 8
test byte [esp + 0x44], 8
jne 0x539d8f
lea eax, [ecx*4 + 8]
shl ebp, 0x1f
mov ecx, esi
or ebp, 0x10000
sub ecx, eax
or dword [ecx], ebp
or dword [ecx - 4], 0x20000
or dword [ecx + 4], 0x8000
or dword [esi], 0x200000
mov ebx, dword [esi]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov ebp, ebx
mov eax, dword [edi + 0x74]
dec ecx
imul ecx, dword [edi + 0x8c]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x24], eax
test ebx, 0x1000080
jne 0x539eee
test ebx, 0xf78
je 0x539eee
mov eax, dword [eax]
mov ecx, 0
cdq
mov ebp, eax
mov eax, dword [edi + 0x6c]
xor ebp, edx
sub ebp, edx
and ebp, dword [esp + 0x18]
setne cl
shr ebx, 3
and ebx, 0x1ef
push ecx
push edi
movzx eax, byte [ebx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x539e0b
call fcn.0053c370
jmp 0x539e10
call fcn.0053c650
add esp, 8
test ebp, ebp
je 0x539ee2
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x400000
shr ebx, 2
and ebx, 0x100000
or ebx, eax
mov eax, ecx
and eax, 0x2000000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x80000
shr ebx, 4
or ebx, eax
and ecx, 0x550
shr ebx, 0xc
or ebx, ecx
mov ecx, dword [esp + 0x38]
shr ebx, 3
movzx eax, byte [ebx + 0x601cd8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ebp, eax
cdq
xor eax, edx
shr ebp, 0x1f
sub eax, edx
test ecx, ecx
je 0x539e8a
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ed8]
jmp 0x539e95
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fd8]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x539eb9
push ebp
push edi
call fcn.0053c370
jmp 0x539ec9
movzx eax, byte [ebx + 0x601dd8]
xor eax, ebp
push eax
push edi
call fcn.0053c650
or dword [esi - 4], 0x100
add esp, 8
shl ebp, 0x16
or ebp, 0x80
or dword [esi], ebp
or dword [esi + 4], 0x40
or dword [esi], 0x1000000
mov ebp, dword [esi]
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x8c]
mov ebx, ebp
imul ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x24], eax
test ebp, 0x8000400
jne 0x53a043
test ebp, 0x7bc0
je 0x53a043
mov eax, dword [eax]
mov ecx, 0
cdq
mov ebx, eax
mov eax, dword [edi + 0x6c]
xor ebx, edx
sub ebx, edx
and ebx, dword [esp + 0x18]
setne cl
shr ebp, 6
and ebp, 0x1ef
push ecx
push edi
movzx eax, byte [eax + ebp]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x539f5d
call fcn.0053c370
jmp 0x539f62
call fcn.0053c650
add esp, 8
test ebx, ebx
je 0x53a037
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x2000000
shr ebx, 2
and ebx, 0x800000
or ebx, eax
mov eax, ecx
and eax, 0x10000000
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x400000
shr ebx, 4
or ebx, eax
and ecx, 0x2a80
shr ebx, 0xc
or ebx, ecx
mov ecx, dword [esp + 0x38]
shr ebx, 6
movzx eax, byte [ebx + 0x601cd8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ebp, eax
cdq
xor eax, edx
shr ebp, 0x1f
sub eax, edx
test ecx, ecx
je 0x539fdc
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ed8]
jmp 0x539fe7
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fd8]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x53a00b
push ebp
push edi
call fcn.0053c370
jmp 0x53a01b
movzx eax, byte [ebx + 0x601dd8]
xor eax, ebp
push eax
push edi
call fcn.0053c650
or dword [esi - 4], 0x800
add esp, 8
shl ebp, 0x19
or ebp, 0x400
or dword [esi], ebp
or dword [esi + 4], 0x200
or dword [esi], 0x8000000
mov ebx, dword [esi]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [edi + 0x74]
inc ecx
imul ecx, dword [edi + 0x8c]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x24], eax
test ebx, 0x40002000
jne 0x53a1ad
test ebx, 0x3de00
je 0x53a1ad
mov eax, dword [eax]
mov ecx, 0
cdq
mov ebp, eax
mov eax, dword [edi + 0x6c]
xor ebp, edx
sub ebp, edx
and ebp, dword [esp + 0x18]
setne cl
shr ebx, 9
and ebx, 0x1ef
push ecx
push edi
movzx eax, byte [ebx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x53a0b1
call fcn.0053c370
jmp 0x53a0b6
call fcn.0053c650
add esp, 8
test ebp, ebp
je 0x53a1a3
mov ebx, dword [esi - 4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
and eax, 0x10000000
shr ebx, 2
and ebx, 0x4000000
or ebx, eax
mov eax, ecx
and eax, 0x81ffffff
shr ebx, 1
or ebx, eax
mov eax, ecx
and eax, 0x2000000
shr ebx, 4
or ebx, eax
and ecx, 0x15400
shr ebx, 0xc
or ebx, ecx
mov ecx, dword [esp + 0x38]
shr ebx, 9
movzx eax, byte [ebx + 0x601cd8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ebp, eax
cdq
xor eax, edx
shr ebp, 0x1f
sub eax, edx
test ecx, ecx
je 0x53a130
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ed8]
jmp 0x53a13b
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fd8]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x20]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x53a15f
push ebp
push edi
call fcn.0053c370
jmp 0x53a16f
movzx eax, byte [ebx + 0x601dd8]
xor eax, ebp
push eax
push edi
call fcn.0053c650
mov ecx, dword [edi + 0x7c]
mov eax, ebp
or dword [esi - 4], 0x4000
add esp, 8
shl eax, 0x1c
or eax, 0x2000
shl ebp, 0x12
or dword [esi], eax
or ebp, 2
or dword [esi + 4], 0x1000
or dword [esi + ecx*4 + 8], ebp
or dword [esi + ecx*4 + 4], 4
or dword [esi + ecx*4 + 0xc], 1
or dword [esi], 0x40000000
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc edx
add esi, 4
mov dword [esp + 0x14], edx
cmp edx, dword [edi + 0x7c]
jb 0x539c23
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x80]
add eax, 4
mov dword [esp + 0x34], eax
add ebp, 4
mov eax, ecx
mov dword [esp + 0x10], ebp
and eax, 0xfffffffc
add esi, 8
cmp ebp, eax
mov eax, dword [esp + 0x34]
jb 0x539c14
cmp ebp, ecx
jae 0x53a45e
mov ecx, dword [edi + 0x7c]
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x53a45e
nop word [eax + eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x53a44e
mov eax, ebp
mov dword [esp + 0x24], eax
cmp ebp, dword [edi + 0x80]
jae 0x53a44e
mov dword [esp + 0x34], 0
xor ebp, ebp
cmp eax, dword [esp + 0x10]
jne 0x53a24b
test byte [esp + 0x44], 8
mov dword [esp + 0x20], 1
jne 0x53a253
mov dword [esp + 0x20], 0
mov ecx, dword [edi + 0x8c]
imul ecx, eax
mov eax, dword [edi + 0x74]
add ecx, edx
mov edx, ebx
lea eax, [eax + ecx*4]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov eax, 0x200010
shl eax, cl
test ebx, eax
jne 0x53a425
mov eax, 0x1ef
shl eax, cl
test ebx, eax
je 0x53a425
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
mov edx, 0
and eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x6c]
setne dl
shr ebx, cl
and ebx, 0x1ef
push edx
push edi
movzx eax, byte [ebx + eax]
add eax, 7
cmp byte [esp + 0x48], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x53a2cd
call fcn.0053c370
jmp 0x53a2d2
call fcn.0053c650
add esp, 8
cmp dword [esp + 0x28], 0
je 0x53a418
mov ebx, dword [esi - 4]
lea ecx, [ebp + 0x13]
mov edx, dword [esi]
mov eax, edx
shr ebx, cl
mov ecx, ebp
shr eax, cl
and ebx, 1
and eax, 0xaa
lea ecx, [ebp + 0x11]
or ebx, eax
mov eax, dword [esi + 4]
shr eax, cl
and eax, 4
or ebx, eax
cmp dword [esp + 0x34], 0
mov eax, edx
jne 0x53a315
shr eax, 0xe
jmp 0x53a31d
add ecx, 0xfffffffb
shr eax, cl
lea ecx, [ebp + 0x11]
and eax, 0x10
dec ecx
shr edx, cl
mov ecx, dword [esp + 0x38]
and edx, 0x40
or edx, eax
or edx, ebx
mov dword [esp + 0x2c], edx
movzx eax, byte [edx + 0x601cd8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ebx, eax
cdq
xor eax, edx
shr ebx, 0x1f
sub eax, edx
test ecx, ecx
je 0x53a360
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ed8]
jmp 0x53a36b
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fd8]
mov ecx, dword [esp + 0x3c]
cwde
add dword [ecx], eax
mov eax, dword [esp + 0x28]
add eax, 7
cmp byte [esp + 0x40], 1
lea eax, [edi + eax*4]
mov dword [edi + 0x68], eax
jne 0x53a38f
push ebx
push edi
call fcn.0053c370
jmp 0x53a3a3
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x601dd8]
xor eax, ebx
push eax
push edi
call fcn.0053c650
mov edx, dword [edi + 0x7c]
mov ecx, ebp
mov eax, 0x20
add esp, 8
shl eax, cl
or dword [esi - 4], eax
mov eax, ebx
shl eax, 0x13
or eax, 0x10
shl eax, cl
or dword [esi], eax
mov eax, 8
shl eax, cl
or dword [esi + 4], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x53a3ff
cmp dword [esp + 0x20], eax
jne 0x53a418
lea eax, [edx*4 + 8]
shl ebx, 0x1f
mov ecx, esi
or ebx, 0x10000
sub ecx, eax
or dword [ecx], ebx
or dword [ecx - 4], 0x20000
or dword [ecx + 4], 0x8000
jmp 0x53a418
cmp eax, 3
jne 0x53a418
shl ebx, 0x12
or ebx, 2
or dword [esi + edx*4 + 8], ebx
or dword [esi + edx*4 + 4], 4
or dword [esi + edx*4 + 0xc], 1
mov eax, 0x200000
mov ecx, ebp
shl eax, cl
or dword [esi], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x24]
add ebp, 3
inc dword [esp + 0x34]
inc eax
mov ebx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
cmp eax, dword [edi + 0x80]
jb 0x53a236
mov ecx, dword [edi + 0x7c]
mov ebp, dword [esp + 0x10]
inc edx
add esi, 4
mov dword [esp + 0x14], edx
cmp edx, ecx
jb 0x53a210
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret