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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0xa4
mov edx, 1
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx]
test eax, eax
mov edi, dword [ebp + 0x2c]
mov esi, dword [esi]
cmovle eax, edx
test esi, esi
mov ebx, dword [ebp + 0x34]
cmovle esi, edx
mov dword [esp + 0x7c], esi
mov esi, dword [edi]
mov edi, dword [ebp + 0x30]
mov dword [esp], ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [edi]
test edi, edi
mov ebx, dword [ebx]
cmovle edi, edx
test ebx, ebx
mov ecx, dword [ecx]
cmovle ebx, edx
cmp ecx, esi
mov edx, esi
cmovl edx, ecx
cmp eax, edi
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edi
cmovl edi, eax
mov eax, dword [esp + 0x7c]
cmp eax, ebx
mov dword [esp + 0x1c], ebx
cmovl ebx, eax
mov eax, dword [esp]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [0x5e1548], esi
sub eax, dword [edx]
mov dword [esp + 0x24], ebx
test ebx, ebx
mov dword [esp + 4], eax
lea edx, [eax + eax]
mov dword [esp + 0x20], edx
jle 0x4606d5
mov eax, dword [esp + 0x80]
lea ebx, [ecx*4]
mov edx, eax
neg edx
imul edx, esi
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x34], edx
mov edx, edi
imul edx, ebx
mov dword [esp + 0x48], edx
mov edx, ecx
mov dword [esp + 0x6c], ebx
neg edx
mov ebx, edi
mov dword [esp + 0x8c], edx
imul ebx, edx
mov edx, ecx
imul edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], ebx
add ebx, edx
mov edx, dword [esp + 4]
mov dword [esp + 0x4c], 0
lea ebx, [ebx + edx*2]
mov edx, eax
imul edx, esi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
add ebx, edx
mov edx, dword [esp + 0x6c]
neg edx
imul edi, edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], edi
lea ebx, [edx + edi]
mov edx, esi
add ebx, dword [esp + 0x48]
lea edi, [eax*4]
mov dword [esp + 0x3c], ebx
mov ebx, edi
neg ebx
imul ebx, esi
imul edx, edi
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x28], ebx
mov dword [esp], edi
mov dword [esp + 0x18], edx
add ebx, eax
lea edi, [ebx + edx]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x50]
lea eax, [esi*4]
mov dword [esp + 0x68], eax
mov eax, 0x2aaaaaab
imul edi
mov eax, edi
sar edx, 2
sar eax, 0x1f
sub edx, eax
lea eax, [edi + 1]
mov edi, dword [esp + 0x90]
test edi, edi
mov dword [esp + 0x64], edx
jle 0x46020d
mov dword [esp + 0x54], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x88], ecx
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
imul ebx, esi
imul edx, esi
imul eax, esi
mov edi, dword [esp + 0xc]
imul edi, esi
add ebx, dword [esp + 0x44]
add edx, dword [esp + 0x3c]
add eax, dword [esp + 0x14]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x4c], esi
add edi, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov edx, ebx
mov eax, dword [esp + 0x88]
imul eax, ecx
imul edx, ecx
add eax, dword [esp + 0x94]
add edx, edi
cmp eax, edx
jle 0x4601d5
mov eax, dword [esp + 0x68]
imul eax, ecx
mov edx, dword [esp + 0x6c]
imul edx, ecx
add eax, dword [esp + 0x70]
add edx, dword [esp + 0x74]
mov dword [esp + 0x78], eax
mov eax, 1
mov dword [0x5e15f8], esi
test esi, esi
mov dword [0x5e15fc], eax
mov dword [0x5e1600], esi
mov dword [0x5e1604], eax
jle 0x4601cb
cmp dword [esp + 0x64], 0
je 0x4607c5
mov dword [esp + 0x58], ecx
xor eax, eax
mov dword [esp + 4], edi
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
lea ebx, [eax + eax*2]
inc eax
shl ebx, 5
cmp eax, ecx
mov edi, dword [edx + ebx]
mov dword [esi + ebx], edi
mov edi, dword [edx + ebx + 4]
mov dword [esi + ebx + 4], edi
mov edi, dword [edx + ebx + 8]
mov dword [esi + ebx + 8], edi
mov edi, dword [edx + ebx + 0xc]
mov dword [esi + ebx + 0xc], edi
mov edi, dword [edx + ebx + 0x10]
mov dword [esi + ebx + 0x10], edi
mov edi, dword [edx + ebx + 0x14]
mov dword [esi + ebx + 0x14], edi
mov edi, dword [edx + ebx + 0x18]
mov dword [esi + ebx + 0x18], edi
mov edi, dword [edx + ebx + 0x1c]
mov dword [esi + ebx + 0x1c], edi
mov edi, dword [edx + ebx + 0x20]
mov dword [esi + ebx + 0x20], edi
mov edi, dword [edx + ebx + 0x24]
mov dword [esi + ebx + 0x24], edi
mov edi, dword [edx + ebx + 0x28]
mov dword [esi + ebx + 0x28], edi
mov edi, dword [edx + ebx + 0x2c]
mov dword [esi + ebx + 0x2c], edi
mov edi, dword [edx + ebx + 0x30]
mov dword [esi + ebx + 0x30], edi
mov edi, dword [edx + ebx + 0x34]
mov dword [esi + ebx + 0x34], edi
mov edi, dword [edx + ebx + 0x38]
mov dword [esi + ebx + 0x38], edi
mov edi, dword [edx + ebx + 0x3c]
mov dword [esi + ebx + 0x3c], edi
mov edi, dword [edx + ebx + 0x40]
mov dword [esi + ebx + 0x40], edi
mov edi, dword [edx + ebx + 0x44]
mov dword [esi + ebx + 0x44], edi
mov edi, dword [edx + ebx + 0x48]
mov dword [esi + ebx + 0x48], edi
mov edi, dword [edx + ebx + 0x4c]
mov dword [esi + ebx + 0x4c], edi
mov edi, dword [edx + ebx + 0x50]
mov dword [esi + ebx + 0x50], edi
mov edi, dword [edx + ebx + 0x54]
mov dword [esi + ebx + 0x54], edi
mov edi, dword [edx + ebx + 0x58]
mov dword [esi + ebx + 0x58], edi
mov edi, dword [edx + ebx + 0x5c]
mov dword [esi + ebx + 0x5c], edi
jb 0x4600b9
mov edi, dword [esp + 4]
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0x58]
lea eax, [eax*8 + 1]
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
dec eax
cmp eax, esi
jae 0x4601c0
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x78]
mov ecx, dword [edx + eax*4]
mov dword [ebx + eax*4], ecx
inc eax
cmp eax, esi
jb 0x4601ad
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov dword [0x5e1608], eax
jmp 0x4601d5
mov dword [0x5e1608], 1
inc ecx
cmp ecx, dword [esp + 0x90]
jb 0x46003f
nop
lea esi, [esi]
mov esi, dword [esp + 0x4c]
inc esi
cmp esi, dword [esp + 0x24]
jb 0x45fff6
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x54], esi
lea eax, [edi + 1]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
sub esi, ecx
imul ecx, eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x90], edi
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x30]
lea ebx, [ebx + 1]
add ecx, edi
mov dword [esp + 4], ebx
mov dword [esp + 0x44], 0
add edx, edi
mov edi, dword [esp + 0x10]
add esi, edx
imul edi, ebx
add esi, ecx
add esi, edi
mov edi, dword [esp + 0x34]
mov edx, edi
mov ecx, dword [esp + 0x54]
sub edx, ecx
add edx, edi
mov edi, ecx
imul edi, eax
mov dword [esp + 0x20], esi
mov esi, ecx
neg esi
add edi, esi
add edx, edi
mov edi, dword [esp + 0x84]
imul edi, ebx
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0xc]
imul esi, ebx
mov ebx, dword [esp + 0x90]
add edx, esi
mov esi, dword [esp + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
lea edi, [edi + ebx + 1]
mov ebx, dword [esp + 0x6c]
sub esi, ebx
imul edi, ebx
mov ebx, dword [esp + 0x60]
add ebx, edx
add esi, ebx
add esi, edx
add edi, esi
mov esi, dword [esp + 0x68]
mov edx, esi
imul eax, esi
mov dword [esp + 0x3c], edi
lea edi, [ecx*4]
imul ecx, dword [esp + 4]
neg edi
sub edx, dword [esp + 0x28]
add eax, edi
mov ebx, dword [esp + 0x38]
sub ebx, edx
add ebx, eax
mov eax, dword [esp]
imul eax, ecx
mov dword [esp + 0x48], edi
add ebx, eax
mov edi, dword [esp + 0x90]
test edi, edi
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x3c]
jle 0x4606d5
mov dword [esp + 0x90], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x88], ecx
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
imul eax, edi
imul esi, edi
imul ebx, edi
imul edx, edi
add eax, dword [esp + 0x38]
add esi, dword [esp + 0x20]
add ebx, dword [esp + 0x40]
add edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x58]
imul edx, ecx
imul ebx, ecx
add edx, dword [esp + 0x68]
add ebx, dword [esp + 0x5c]
cmp edx, ebx
jge 0x4606ac
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x48]
imul edx, ecx
imul ebx, ecx
add edx, dword [esp + 0x54]
add ebx, dword [esp + 0x4c]
mov dword [0x5e15f8], eax
test eax, eax
mov dword [0x5e15fc], eax
mov dword [0x5e1600], 1
mov dword [0x5e1604], 0xffffffff
jle 0x4606a7
cmp eax, 6
jle 0x460561
lea edi, [edx + eax*4 - 4]
mov dword [esp + 4], edi
lea esi, [ebx + eax*4 - 4]
mov dword [esp], esi
cmp esi, edi
jbe 0x4603f9
mov edi, esi
lea esi, [eax*4]
sub edi, dword [esp + 4]
cmp esi, edi
jl 0x460418
mov esi, dword [esp + 4]
cmp esi, dword [esp]
jbe 0x460561
lea edi, [eax*4]
sub esi, dword [esp]
cmp esi, edi
jle 0x460561
cmp dword [esp + 0x64], 0
je 0x4607cf
xor esi, esi
lea edi, [ebx + eax*4]
mov dword [esp + 8], edi
lea edi, [edx + eax*4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, esi
mov edx, edi
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x64]
mov edi, dword [eax + edx - 4]
inc esi
mov dword [eax + ebx - 4], edi
mov edi, dword [eax + edx - 8]
mov dword [eax + ebx - 8], edi
mov edi, dword [eax + edx - 0xc]
mov dword [eax + ebx - 0xc], edi
mov edi, dword [eax + edx - 0x10]
mov dword [eax + ebx - 0x10], edi
mov edi, dword [eax + edx - 0x14]
mov dword [eax + ebx - 0x14], edi
mov edi, dword [eax + edx - 0x18]
mov dword [eax + ebx - 0x18], edi
mov edi, dword [eax + edx - 0x1c]
mov dword [eax + ebx - 0x1c], edi
mov edi, dword [eax + edx - 0x20]
mov dword [eax + ebx - 0x20], edi
mov edi, dword [eax + edx - 0x24]
mov dword [eax + ebx - 0x24], edi
mov edi, dword [eax + edx - 0x28]
mov dword [eax + ebx - 0x28], edi
mov edi, dword [eax + edx - 0x2c]
mov dword [eax + ebx - 0x2c], edi
mov edi, dword [eax + edx - 0x30]
mov dword [eax + ebx - 0x30], edi
mov edi, dword [eax + edx - 0x34]
mov dword [eax + ebx - 0x34], edi
mov edi, dword [eax + edx - 0x38]
mov dword [eax + ebx - 0x38], edi
mov edi, dword [eax + edx - 0x3c]
mov dword [eax + ebx - 0x3c], edi
mov edi, dword [eax + edx - 0x40]
mov dword [eax + ebx - 0x40], edi
mov edi, dword [eax + edx - 0x44]
mov dword [eax + ebx - 0x44], edi
mov edi, dword [eax + edx - 0x48]
mov dword [eax + ebx - 0x48], edi
mov edi, dword [eax + edx - 0x4c]
mov dword [eax + ebx - 0x4c], edi
mov edi, dword [eax + edx - 0x50]
mov dword [eax + ebx - 0x50], edi
mov edi, dword [eax + edx - 0x54]
mov dword [eax + ebx - 0x54], edi
mov edi, dword [eax + edx - 0x58]
mov dword [eax + ebx - 0x58], edi
mov edi, dword [eax + edx - 0x5c]
mov dword [eax + ebx - 0x5c], edi
mov edi, dword [eax + edx - 0x60]
mov dword [eax + ebx - 0x60], edi
add eax, 0xffffffa0
cmp esi, ecx
jb 0x460447
mov ebx, dword [esp + 0x10]
lea esi, [esi + esi*2]
mov edx, dword [esp + 0x14]
lea esi, [esi*8 + 1]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
dec esi
mov edi, esi
neg edi
cmp esi, eax
jae 0x460552
mov dword [esp + 0x18], ecx
lea ebx, [ebx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + edi*4 - 4]
inc esi
mov dword [ebx + edi*4 - 4], ecx
dec edi
cmp esi, eax
jb 0x460540
mov ecx, dword [esp + 0x18]
mov dword [0x5e1608], 0
jmp 0x4606ac
cmp dword [esp + 0x64], 0
je 0x4607d9
xor esi, esi
lea edi, [ebx + eax*4]
mov dword [esp + 0xc], edi
lea edi, [edx + eax*4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, esi
mov edx, edi
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x64]
mov edi, dword [eax + edx - 4]
inc esi
mov dword [eax + ebx - 4], edi
mov edi, dword [eax + edx - 8]
mov dword [eax + ebx - 8], edi
mov edi, dword [eax + edx - 0xc]
mov dword [eax + ebx - 0xc], edi
mov edi, dword [eax + edx - 0x10]
mov dword [eax + ebx - 0x10], edi
mov edi, dword [eax + edx - 0x14]
mov dword [eax + ebx - 0x14], edi
mov edi, dword [eax + edx - 0x18]
mov dword [eax + ebx - 0x18], edi
mov edi, dword [eax + edx - 0x1c]
mov dword [eax + ebx - 0x1c], edi
mov edi, dword [eax + edx - 0x20]
mov dword [eax + ebx - 0x20], edi
mov edi, dword [eax + edx - 0x24]
mov dword [eax + ebx - 0x24], edi
mov edi, dword [eax + edx - 0x28]
mov dword [eax + ebx - 0x28], edi
mov edi, dword [eax + edx - 0x2c]
mov dword [eax + ebx - 0x2c], edi
mov edi, dword [eax + edx - 0x30]
mov dword [eax + ebx - 0x30], edi
mov edi, dword [eax + edx - 0x34]
mov dword [eax + ebx - 0x34], edi
mov edi, dword [eax + edx - 0x38]
mov dword [eax + ebx - 0x38], edi
mov edi, dword [eax + edx - 0x3c]
mov dword [eax + ebx - 0x3c], edi
mov edi, dword [eax + edx - 0x40]
mov dword [eax + ebx - 0x40], edi
mov edi, dword [eax + edx - 0x44]
mov dword [eax + ebx - 0x44], edi
mov edi, dword [eax + edx - 0x48]
mov dword [eax + ebx - 0x48], edi
mov edi, dword [eax + edx - 0x4c]
mov dword [eax + ebx - 0x4c], edi
mov edi, dword [eax + edx - 0x50]
mov dword [eax + ebx - 0x50], edi
mov edi, dword [eax + edx - 0x54]
mov dword [eax + ebx - 0x54], edi
mov edi, dword [eax + edx - 0x58]
mov dword [eax + ebx - 0x58], edi
mov edi, dword [eax + edx - 0x5c]
mov dword [eax + ebx - 0x5c], edi
mov edi, dword [eax + edx - 0x60]
mov dword [eax + ebx - 0x60], edi
add eax, 0xffffffa0
cmp esi, ecx
jb 0x460590
mov ebx, dword [esp + 0x10]
lea esi, [esi + esi*2]
mov edx, dword [esp + 0x14]
lea esi, [esi*8 + 1]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
dec esi
mov edi, esi
neg edi
cmp esi, eax
jae 0x46069b
mov dword [esp + 0x18], ecx
lea ebx, [ebx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + edi*4 - 4]
inc esi
mov dword [ebx + edi*4 - 4], ecx
dec edi
cmp esi, eax
jb 0x460689
mov ecx, dword [esp + 0x18]
mov dword [0x5e1608], 0
jmp 0x4606ac
mov dword [0x5e1608], eax
inc ecx
cmp ecx, dword [esp + 0x90]
jb 0x46036f
nop
lea esi, [esi]
mov edi, dword [esp + 0x44]
inc edi
cmp edi, dword [esp + 0x24]
jb 0x460329
mov ecx, dword [esp + 0x88]
cmp dword [esp + 0x1c], 0
jle 0x4607b6
mov ebx, dword [ebp + 0x38]
mov edx, 1
mov edi, dword [ebp + 0x20]
mov eax, dword [esp + 0x80]
mov esi, eax
neg esi
mov ebx, dword [ebx]
lea edi, [edi + ecx*4]
test eax, eax
jle 0x4607b6
mov dword [esp + 4], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x88], ecx
mov ecx, 1
mov esi, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea edi, [esi + eax]
xor esi, esi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x18]
mov edx, dword [0x5e1548]
add eax, esi
imul eax, edx
cmp ebx, dword [esp + 0x84]
jg 0x460758
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x7c]
jle 0x460763
cmp edi, 1
je 0x4607e3
jmp 0x46078c
cmp edx, dword [esp + 0x88]
jle 0x46078c
cmp edi, 1
jne 0x46078c
sub edx, dword [esp + 0x88]
mov dword [esp], edx
mov edx, dword [esp + 4]
lea ecx, [edx + eax*4]
lea eax, [esp]
push eax
push ecx
call fcn.00461390
inc ebx
inc esi
cmp ebx, dword [esp + 0x80]
jle 0x460736
mov eax, dword [esp + 0x10]
mov ecx, 1
mov edx, dword [esp + 0x14]
inc edx
add eax, dword [esp + 0x80]
cmp edx, dword [esp + 0x1c]
jle 0x46071b
add esp, 0xa4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x34
mov eax, 1
jmp 0x4601a0
mov esi, 1
jmp 0x46052d
mov esi, 1
jmp 0x460676
mov edx, dword [ebp + 0x20]
push 0x5e1548
lea eax, [edx + eax*4]
push eax
call fcn.00461390
jmp 0x46078c