Function at 0x539920
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 0x539f4e
mov eax, 2
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [esp + 0x14], edx
cmp dword [edi + 0x7c], edx
jbe 0x539f26
mov ebx, dword [esi]
test ebx, ebx
je 0x539f11
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 0x539afb
mov ebp, ebx
and ebp, 0x1ef
je 0x539afb
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 0x5399f1
call fcn.0053c0d0
jmp 0x5399f6
call fcn.0053c3b0
add esp, 8
test ebx, ebx
je 0x539aef
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 + 0x601ce8]
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 0x539a6d
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ee8]
jmp 0x539a78
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fe8]
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 0x539a9c
push ebp
push edi
call fcn.0053c0d0
jmp 0x539aac
movzx eax, byte [ebx + 0x601de8]
xor eax, ebp
push eax
push edi
call fcn.0053c3b0
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 0x539aef
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 0x539c4e
test ebx, 0xf78
je 0x539c4e
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 0x539b6b
call fcn.0053c0d0
jmp 0x539b70
call fcn.0053c3b0
add esp, 8
test ebp, ebp
je 0x539c42
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 + 0x601ce8]
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 0x539bea
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ee8]
jmp 0x539bf5
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fe8]
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 0x539c19
push ebp
push edi
call fcn.0053c0d0
jmp 0x539c29
movzx eax, byte [ebx + 0x601de8]
xor eax, ebp
push eax
push edi
call fcn.0053c3b0
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 0x539da3
test ebp, 0x7bc0
je 0x539da3
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 0x539cbd
call fcn.0053c0d0
jmp 0x539cc2
call fcn.0053c3b0
add esp, 8
test ebx, ebx
je 0x539d97
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 + 0x601ce8]
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 0x539d3c
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ee8]
jmp 0x539d47
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fe8]
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 0x539d6b
push ebp
push edi
call fcn.0053c0d0
jmp 0x539d7b
movzx eax, byte [ebx + 0x601de8]
xor eax, ebp
push eax
push edi
call fcn.0053c3b0
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 0x539f0d
test ebx, 0x3de00
je 0x539f0d
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 0x539e11
call fcn.0053c0d0
jmp 0x539e16
call fcn.0053c3b0
add esp, 8
test ebp, ebp
je 0x539f03
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 + 0x601ce8]
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 0x539e90
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ee8]
jmp 0x539e9b
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fe8]
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 0x539ebf
push ebp
push edi
call fcn.0053c0d0
jmp 0x539ecf
movzx eax, byte [ebx + 0x601de8]
xor eax, ebp
push eax
push edi
call fcn.0053c3b0
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 0x539983
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 0x539974
cmp ebp, ecx
jae 0x53a1be
mov ecx, dword [edi + 0x7c]
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x53a1be
nop word [eax + eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x53a1ae
mov eax, ebp
mov dword [esp + 0x24], eax
cmp ebp, dword [edi + 0x80]
jae 0x53a1ae
mov dword [esp + 0x34], 0
xor ebp, ebp
cmp eax, dword [esp + 0x10]
jne 0x539fab
test byte [esp + 0x44], 8
mov dword [esp + 0x20], 1
jne 0x539fb3
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 0x53a185
mov eax, 0x1ef
shl eax, cl
test ebx, eax
je 0x53a185
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 0x53a02d
call fcn.0053c0d0
jmp 0x53a032
call fcn.0053c3b0
add esp, 8
cmp dword [esp + 0x28], 0
je 0x53a178
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 0x53a075
shr eax, 0xe
jmp 0x53a07d
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 + 0x601ce8]
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 0x53a0c0
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x601ee8]
jmp 0x53a0cb
and eax, 0x7f
movzx eax, word [eax*2 + 0x601fe8]
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 0x53a0ef
push ebx
push edi
call fcn.0053c0d0
jmp 0x53a103
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x601de8]
xor eax, ebx
push eax
push edi
call fcn.0053c3b0
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 0x53a15f
cmp dword [esp + 0x20], eax
jne 0x53a178
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 0x53a178
cmp eax, 3
jne 0x53a178
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 0x539f96
mov ecx, dword [edi + 0x7c]
mov ebp, dword [esp + 0x10]
inc edx
add esi, 4
mov dword [esp + 0x14], edx
cmp edx, ecx
jb 0x539f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret