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

Disassembly:
mov eax, dword [esp + 0x20]
sub esp, 0x9c
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x540035
mov eax, dword [esp + 0xbc]
add eax, 0xc
mov dword [esp + 0xcc], eax
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0xa0], ecx
mov edx, ecx
mov ecx, 1
mov eax, edi
cmp ebp, ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
jle 0x5400db
lea eax, [esi + 8]
mov edx, dword [eax + 4]
cmp edx, edi
jge 0x540086
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, ecx
mov dword [esp + 0xa0], edx
jmp 0x5400c8
jne 0x5400a3
mov ebp, dword [eax]
cmp ebp, dword [esp + 0xa0]
jge 0x5400a3
mov edi, dword [eax + 4]
mov edx, ebp
mov ebx, ecx
mov dword [esp + 0xa0], edx
jmp 0x5400c8
mov ebp, dword [esp + 0x70]
cmp ebp, edx
jl 0x5400b7
jne 0x5400c8
mov edx, dword [esp + 0x6c]
mov ebp, dword [eax]
cmp edx, ebp
jge 0x5400c8
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x70], edx
mov ebp, dword [esp + 0xd4]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x54006f
mov dword [esp + 0x4c], ebx
lea edi, [ebx - 1]
lea edx, [ebx + 1]
test ebx, ebx
mov dword [esp + 0x14], edi
jne 0x5400f0
lea edi, [ebp - 1]
mov dword [esp + 0x14], edi
lea eax, [ebp - 1]
cmp ebx, eax
mov dword [esp + 0x2c], eax
jne 0x5400fd
xor edx, edx
xor eax, eax
mov ecx, dword [esi + ebx*8 + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [esi + edx*8 + 4]
mov edi, dword [esi + edi*8]
mov dword [esp + 0x18], eax
lea eax, [esi + ebx*8 + 4]
mov edx, dword [esi + edx*8]
mov dword [esp + 0x48], eax
mov eax, dword [esi + ebx*8]
sub ebp, ecx
sub edi, eax
imul ebp, edi
mov edi, dword [esp + 0x14]
sub edx, eax
mov dword [esp + 0x20], ebx
mov edi, dword [esi + edi*8 + 4]
sub edi, ecx
imul edi, edx
sub ebp, edi
test ebp, ebp
jle 0x540341
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x54016e
mov edx, dword [esp + 0xd4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edx*8 - 4]
jne 0x540183
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
jmp 0x540187
mov eax, dword [esi + ebp*8 + 4]
mov edx, dword [esi + ebp*8 - 4]
cmp eax, edx
jne 0x540183
lea edx, [ebp - 1]
mov dword [esp + 0x18], edx
jmp 0x540187
mov edx, dword [esp + 0x18]
cmp ebx, edx
mov eax, ebx
je 0x5401a6
mov edi, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0xd4]
jne 0x54019d
xor eax, eax
inc edi
cmp eax, edx
jne 0x540191
mov dword [esp + 0x28], edi
test ebx, ebx
jne 0x5401c4
mov edx, dword [esp + 0xd4]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + edx*8 - 4]
jne 0x5401d3
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jmp 0x5401d7
cmp ecx, dword [esi + ebx*8 - 4]
jne 0x5401d3
lea eax, [ebx - 1]
mov dword [esp + 0x20], eax
jmp 0x5401d7
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x5401f4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
dec eax
cmp eax, 0xffffffff
jne 0x5401eb
mov eax, edx
inc ecx
cmp eax, ebp
jne 0x5401e3
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x28]
lea edi, [eax + 1]
shl edi, 4
push edi
call fcn.0054a1d0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
lea ebp, [ecx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push edi
mov dword [esp + 0x4c], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x44], eax
call fcn.0054a1d0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp ebx, eax
mov eax, dword [esp + 0xc4]
mov edx, ebx
je 0x5402ba
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
mov ebp, ebx
mov dword [esp + 0x14], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0xd4]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x54026b
xor edx, edx
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x54025b
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x54051d
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ebp, ebx
mov dword [esp + 0x14], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x24], ebp
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x5402ed
mov edx, dword [esp + 0x2c]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x5402e1
jmp 0x54051d
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jne 0x540356
cmp ecx, dword [esi + 4]
jne 0x540365
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x540369
cmp ecx, dword [esi + ebx*8 + 0xc]
jne 0x540365
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
jmp 0x540369
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x54038c
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0xd4]
inc eax
cmp eax, edi
jne 0x540383
xor eax, eax
inc edx
cmp eax, ecx
jne 0x54037c
mov dword [esp + 0x1c], edx
cmp ecx, ebp
jne 0x5403a3
mov edx, dword [esi + ecx*8 + 4]
mov eax, dword [esi + 4]
cmp edx, eax
jne 0x5403b6
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x5403ba
mov eax, dword [esi + ecx*8 + 4]
mov edx, dword [esi + ecx*8 + 0xc]
cmp eax, edx
jne 0x5403b6
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x5403ba
mov ecx, dword [esp + 0x18]
cmp ebx, ecx
mov eax, ebx
je 0x5403d5
mov edx, dword [esp + 0x28]
dec eax
cmp eax, 0xffffffff
jne 0x5403cc
mov eax, ebp
inc edx
cmp eax, ecx
jne 0x5403c4
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x28]
lea edi, [ecx + 1]
shl edi, 4
push edi
call fcn.0054a1d0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
lea ebp, [edx + 1]
shl ebp, 4
push ebp
call fcn.0054a1d0
push edi
mov dword [esp + 0x4c], eax
call fcn.0054a1d0
push ebp
mov dword [esp + 0x44], eax
call fcn.0054a1d0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc4]
je 0x5404a1
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x24], edi
mov ebp, dword [esp + 0xd4]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x54044e
xor edx, edx
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [ecx + ebx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ecx + ebx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x54043e
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov edx, ebx
cmp ebx, ecx
je 0x54051d
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x24], edi
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x5404ce
mov edx, dword [esp + 0x2c]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x24]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x5404c2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
shl eax, 4
add ecx, eax
lea edx, [ecx - 0x10]
mov edi, dword [ecx - 0x10]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x28]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x38]
add eax, ecx
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, edi
shl eax, 4
add ecx, eax
lea edx, [ecx - 0x10]
mov ebx, dword [ecx - 0x10]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx + 8]
mov dword [ecx + 8], ebx
xor ebx, ebx
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x34]
add eax, ecx
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xbc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 8]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x9c], edx
mov dl, byte [esp + 0xd0]
xor ecx, ecx
xor eax, eax
test dl, dl
setne al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xcc]
test eax, eax
jne 0x540613
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov edx, dword [edx]
mov eax, dword [esi + eax*8 + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x540864
mov edx, dword [eax]
mov ebp, dword [esp + 0x10]
shl edx, 0x14
add edx, 0x80000
mov esi, dword [esi + ebp*8 + 4]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0xc]
shl edx, 0x14
sub edx, 0x80000
dec eax
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], eax
mov edx, dword [edx]
cmp eax, edx
jl 0x540c94
cmp esi, ebp
jl 0x540c94
cmp ebp, edx
jg 0x540676
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
jmp 0x540858
mov dword [esp + 0x20], ebp
mov ecx, 1
dec ebp
cmp edi, ecx
mov dword [esp + 0x10], ecx
jle 0x5406a4
mov eax, dword [esp + 0x44]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x540698
cmp ebp, dword [eax]
jl 0x5406a0
inc ecx
add eax, 0x10
cmp ecx, edi
jl 0x54068f
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1c]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x3c], ecx
jle 0x5406d1
mov eax, dword [esp + 0x40]
add eax, 0xc
cmp dword [eax - 8], ebp
jg 0x5406c5
cmp ebp, dword [eax]
jl 0x5406cd
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x5406bc
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
shl ecx, 4
mov edx, dword [ecx + eax - 0xc]
mov edi, dword [ecx + eax - 4]
mov ebx, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebx
mov dword [esp + 0x30], edx
shl eax, 0x14
sub edi, edx
cdq
idiv edi
mov edx, dword [esp + 0x34]
shl ebx, 0x14
mov esi, dword [ecx + edx - 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, esi
mov dword [esp + 0x24], edi
shl eax, 0x14
cdq
idiv edi
shl esi, 0x14
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov edx, eax
mov edi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + edx - 4]
mov ecx, dword [esp + 0x30]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x24]
shl edi, 0x14
mov dword [esp + 0x84], eax
mov eax, ebp
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x88]
lea edx, [ecx + ebx + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x74]
imul eax, dword [esp + 0x84]
mov dword [esp + 0x28], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x3c]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
shl ecx, 4
mov dword [esp + 0x58], edx
mov edx, dword [ecx + eax - 0xc]
mov esi, dword [ecx + eax - 4]
mov edi, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, edi
mov dword [esp + 0x30], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x18]
add esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebx
shl eax, 0x14
cdq
idiv esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
mov esi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + eax - 4]
sub eax, esi
shl eax, 0x14
cdq
idiv dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
sub ebp, ecx
mov ecx, ebp
imul edx, ecx
shl edi, 0x14
shl ebx, 0x14
lea edx, [edx + edi + 0x80000]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
imul edx, ecx
mov dword [esp + 0x90], eax
imul eax, ecx
mov ecx, dword [esp + 0x3c]
lea edx, [edx + ebx + 0x80000]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
shl esi, 0x14
mov edi, edx
mov edx, dword [esp + 0x20]
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
cmp esi, eax
mov dword [esp + 0x24], esi
jle 0x540864
mov dword [esp + 0x24], eax
mov eax, edx
mov esi, dword [esp + 0xbc]
imul eax, dword [esp + 0x14]
add eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
cmp edx, eax
jg 0x540c6f
shl ebx, 4
mov eax, ebx
mov ebx, dword [esp + 0x40]
shl ecx, 4
mov esi, dword [esp + 0x44]
lea ebp, [ecx + ebx]
mov ebx, dword [esp + 0x38]
lea edx, [eax + esi]
mov dword [esp + 0x5c], ebp
lea ecx, [ecx + ebx - 0xc]
add ebp, 0xfffffff0
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x94], edx
lea ebx, [edx - 0x10]
lea eax, [eax + ecx - 0xc]
mov dword [esp + 0x50], eax
mov eax, ecx
mov ecx, dword [esp + 0x40]
sub eax, esi
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0xa0], eax
jmp 0x5408e9
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
cmp eax, ecx
je 0x540940
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
add eax, edx
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
add ecx, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
sar ecx, 0x14
imul ecx, dword [esp + 0x54]
add eax, esi
mov dword [esp + 0x58], eax
sar eax, 0x14
add edx, ecx
lea esi, [edx + eax*4]
jmp 0x5409ef
mov edx, dword [ebx + 0x10]
add ebx, 0x10
mov eax, edx
mov ecx, dword [esp + 0x50]
mov edi, dword [ebx + 0xc]
add ecx, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
sub edi, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 8]
sub eax, edx
mov ecx, dword [ecx]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xa8]
mov esi, dword [edx + ebx]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x88], eax
mov eax, esi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x58], eax
mov eax, ecx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [edx + 4]
sub eax, esi
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 8]
sub eax, ecx
imul ecx, dword [esp + 0x54]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0x9c]
mov edi, dword [esp + 0x1c]
add edx, ecx
lea esi, [edx + esi*4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
cmp dword [eax + 4], ecx
je 0x540a2d
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
add eax, edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
add edi, edx
add ecx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x60], ecx
jmp 0x540acd
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
add ebp, 0x10
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, edx
mov ecx, dword [ebp + 0xc]
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
sub ecx, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xa0]
mov edx, dword [edx + ebp]
mov edi, edx
shl edi, 0x14
add edi, 0x80000
mov dword [esp + 0x1c], edi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x30]
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
sar ecx, 0x14
sar eax, 0x14
mov edx, ecx
mov dword [esp + 0x30], ecx
sub edx, eax
mov dword [esp + 0x64], eax
je 0x540b34
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x58]
sar edx, 0x14
mov eax, edi
shl edx, 0x14
and eax, 0xfff00000
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x68]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x60]
and eax, 0xfff00000
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
jmp 0x540b3e
xor edx, edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x4c], edx
xor edx, edx
cmp dword [esp + 0xcc], edx
mov dword [esp + 0x6c], esi
je 0x540be2
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jl 0x540c4c
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jl 0x540c4c
cmp eax, dword [esp + 0x28]
jg 0x540b87
mov eax, dword [esp + 0x64]
jmp 0x540bc2
mov ecx, dword [esp + 0xcc]
mov edi, dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x8c]
sub ecx, edi
sar ecx, 0x14
mov edx, ecx
imul ecx, dword [esp + 0x48]
imul edx, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov edi, edx
sar ecx, 0x14
imul ecx, dword [esp + 0x54]
sar edi, 0x14
add ecx, esi
lea esi, [ecx + edi*4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x98]
cmp ecx, edi
jg 0x540bd7
mov ecx, dword [esp + 0x30]
jmp 0x540be2
mov ecx, dword [esp + 0xcc]
mov ecx, dword [ecx + 8]
dec ecx
cmp eax, ecx
jg 0x540c38
mov edi, dword [esp + 0x3c]
sub ecx, eax
inc ecx
lea edi, [edi + eax*4]
mov dword [esp + 0x30], ecx
mov ax, word [esi]
mov word [edi], ax
mov eax, dword [esp + 0x78]
mov cl, byte [esi + 2]
mov esi, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x4c]
add eax, esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov byte [edi + 2], cl
sar eax, 0x14
imul eax, dword [esp + 0x54]
mov ecx, edx
add esi, eax
mov eax, dword [esp + 0x30]
add edi, 4
sar ecx, 0x14
dec eax
lea esi, [esi + ecx*4]
mov dword [esp + 0x30], eax
jne 0x540bf4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x3c], eax
jmp 0x540c5a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x5408e2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0054a2d0
mov edx, dword [esp + 0x44]
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0054a2d0
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x540cb7
mov edx, dword [esp + 0x44]
push edx
call fcn.0054a2d0
mov eax, dword [esp + 0x44]
push eax
call fcn.0054a2d0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0054a2d0
mov edx, dword [esp + 0x44]
push edx
call fcn.0054a2d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret