Function at 0x53e3b0
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 0x53e9de
mov eax, 2
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [esp + 0x14], edx
cmp dword [edi + 0x7c], edx
jbe 0x53e9b6
mov ebx, dword [esi]
test ebx, ebx
je 0x53e9a1
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 0x53e58b
mov ebp, ebx
and ebp, 0x1ef
je 0x53e58b
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 0x53e481
call fcn.00540b60
jmp 0x53e486
call fcn.00540e40
add esp, 8
test ebx, ebx
je 0x53e57f
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 + 0x605cd8]
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 0x53e4fd
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x605ed8]
jmp 0x53e508
and eax, 0x7f
movzx eax, word [eax*2 + 0x605fd8]
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 0x53e52c
push ebp
push edi
call fcn.00540b60
jmp 0x53e53c
movzx eax, byte [ebx + 0x605dd8]
xor eax, ebp
push eax
push edi
call fcn.00540e40
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 0x53e57f
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 0x53e6de
test ebx, 0xf78
je 0x53e6de
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 0x53e5fb
call fcn.00540b60
jmp 0x53e600
call fcn.00540e40
add esp, 8
test ebp, ebp
je 0x53e6d2
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 + 0x605cd8]
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 0x53e67a
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x605ed8]
jmp 0x53e685
and eax, 0x7f
movzx eax, word [eax*2 + 0x605fd8]
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 0x53e6a9
push ebp
push edi
call fcn.00540b60
jmp 0x53e6b9
movzx eax, byte [ebx + 0x605dd8]
xor eax, ebp
push eax
push edi
call fcn.00540e40
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 0x53e833
test ebp, 0x7bc0
je 0x53e833
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 0x53e74d
call fcn.00540b60
jmp 0x53e752
call fcn.00540e40
add esp, 8
test ebx, ebx
je 0x53e827
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 + 0x605cd8]
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 0x53e7cc
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x605ed8]
jmp 0x53e7d7
and eax, 0x7f
movzx eax, word [eax*2 + 0x605fd8]
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 0x53e7fb
push ebp
push edi
call fcn.00540b60
jmp 0x53e80b
movzx eax, byte [ebx + 0x605dd8]
xor eax, ebp
push eax
push edi
call fcn.00540e40
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 0x53e99d
test ebx, 0x3de00
je 0x53e99d
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 0x53e8a1
call fcn.00540b60
jmp 0x53e8a6
call fcn.00540e40
add esp, 8
test ebp, ebp
je 0x53e993
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 + 0x605cd8]
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 0x53e920
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x605ed8]
jmp 0x53e92b
and eax, 0x7f
movzx eax, word [eax*2 + 0x605fd8]
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 0x53e94f
push ebp
push edi
call fcn.00540b60
jmp 0x53e95f
movzx eax, byte [ebx + 0x605dd8]
xor eax, ebp
push eax
push edi
call fcn.00540e40
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 0x53e413
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 0x53e404
cmp ebp, ecx
jae 0x53ec4e
mov ecx, dword [edi + 0x7c]
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x53ec4e
nop word [eax + eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x53ec3e
mov eax, ebp
mov dword [esp + 0x24], eax
cmp ebp, dword [edi + 0x80]
jae 0x53ec3e
mov dword [esp + 0x34], 0
xor ebp, ebp
cmp eax, dword [esp + 0x10]
jne 0x53ea3b
test byte [esp + 0x44], 8
mov dword [esp + 0x20], 1
jne 0x53ea43
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 0x53ec15
mov eax, 0x1ef
shl eax, cl
test ebx, eax
je 0x53ec15
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 0x53eabd
call fcn.00540b60
jmp 0x53eac2
call fcn.00540e40
add esp, 8
cmp dword [esp + 0x28], 0
je 0x53ec08
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 0x53eb05
shr eax, 0xe
jmp 0x53eb0d
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 + 0x605cd8]
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 0x53eb50
shr eax, cl
and eax, 0x7f
movzx eax, word [eax*2 + 0x605ed8]
jmp 0x53eb5b
and eax, 0x7f
movzx eax, word [eax*2 + 0x605fd8]
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 0x53eb7f
push ebx
push edi
call fcn.00540b60
jmp 0x53eb93
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x605dd8]
xor eax, ebx
push eax
push edi
call fcn.00540e40
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 0x53ebef
cmp dword [esp + 0x20], eax
jne 0x53ec08
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 0x53ec08
cmp eax, 3
jne 0x53ec08
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 0x53ea26
mov ecx, dword [edi + 0x7c]
mov ebp, dword [esp + 0x10]
inc edx
add esi, 4
mov dword [esp + 0x14], edx
cmp edx, ecx
jb 0x53ea00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret