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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x68
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx]
test dword [edx + 0xc], 8
je 0x84d93c
mov ecx, dword [esp + 0x80]
cmp ecx, 1
je 0x84db82
mov ebp, dword [edx + 0x1c]
mov edi, dword [edx + 0x28]
mov edx, dword [ebp]
cmp edx, 4
jne 0x84d646
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
jle 0x84db63
mov ebp, dword [esp + 0x8c]
lea ebp, [ebp + ebp]
add ebp, ebp
mov ecx, dword [esp + 0x88]
lea esi, [ecx + ecx]
add esi, esi
imul ebx, esi
mov edi, dword [esp + 0x84]
add ebx, edi
neg ecx
mov esi, eax
imul esi, ebp
add esi, edi
mov edi, eax
imul edi, ebp
add edi, ebx
mov ebx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x4c]
push edx
mov ecx, dword [esp + 0x8c]
push ecx
push ecx
push edi
push esi
push esi
mov edx, dword [esp + 0x68]
call edx
add esp, 0x18
add esi, ebp
add edi, ebp
inc ebx
mov edx, dword [esp + 0x80]
cmp ebx, edx
jl 0x84d617
jmp 0x84db63
cmp edx, 5
jne 0x84d6d6
mov edx, dword [ebp + 8]
xor edi, edi
mov ecx, dword [esp + 0x80]
test ecx, ecx
jle 0x84db63
mov ecx, dword [esp + 0x8c]
lea eax, [ecx + ecx]
add eax, eax
mov ecx, dword [esp + 0x88]
lea esi, [ecx + ecx]
add esi, esi
imul ebx, esi
mov ebp, dword [esp + 0x84]
add ebx, ebp
neg ecx
mov esi, edi
imul esi, eax
add esi, ebp
mov ebp, edi
imul ebp, eax
add ebp, ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
push ebx
mov eax, dword [esp + 0x68]
push eax
push ebx
push esi
push ebp
push esi
mov edx, dword [esp + 0x78]
call edx
add esp, 0x18
mov eax, dword [esp + 0x5c]
add esi, eax
add ebp, eax
inc edi
mov edx, dword [esp + 0x80]
cmp edi, edx
jl 0x84d6aa
jmp 0x84db63
mov edx, dword [esp + 0x90]
test edx, edx
je 0x84db6b
mov edx, dword [esp + 0x90]
mov dword [esp + 0x50], edx
xor esi, esi
mov edx, dword [esp + 0x80]
test edx, edx
jle 0x84d91a
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x8c]
lea ecx, [edi + edi]
add ecx, ecx
mov edx, dword [esp + 0x88]
lea edi, [edx + edx]
mov dword [esp + 0x64], ecx
add edi, edi
mov dword [esp + 0x28], edi
mov edi, ebx
and edi, 3
mov dword [esp + 0x24], edi
lea edi, [edi - 6]
mov dword [esp + 0x54], edi
lea edi, [edx + edx]
add edi, edi
mov dword [esp + 0x5c], edi
lea edi, [edx + edx]
add edi, edi
add edi, edi
mov dword [esp + 0x60], edi
lea edi, [edx + edx]
add edi, edi
lea eax, [edi + edi]
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x58], eax
lea eax, [edx + edx]
add eax, eax
add eax, eax
add eax, eax
mov edx, esi
imul edx, ecx
add edx, dword [esp + 0x84]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x30], edi
mov edi, edx
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edx, edi
mov ecx, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
call fcn.0084dc08
xor eax, eax
test ebx, ebx
jle 0x84d874
cmp ebx, 6
jl 0x84d862
mov edx, dword [esp + 0x5c]
lea edx, [edi + edx]
lea ecx, [ebp + ebp]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x60]
lea edx, [edi + edx]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x58]
lea edx, [edi + edx]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
lea edx, [edi + edx]
mov dword [esp + 0x3c], edx
mov edx, eax
imul edx, ebp
add ecx, ecx
add ecx, ebp
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov ebp, dword [esi + eax*4]
mov dword [edx + edi], ebp
mov ebp, dword [esi + eax*4 + 4]
mov dword [ebx + edx], ebp
mov ecx, dword [esi + eax*4 + 8]
mov ebp, dword [esp + 0x44]
mov dword [ebp + edx], ecx
mov ecx, dword [esi + eax*4 + 0xc]
mov ebp, dword [esp + 0x40]
mov dword [ebp + edx], ecx
mov ecx, dword [esi + eax*4 + 0x10]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + edx], ecx
add eax, 5
mov ebp, dword [esp + 0x54]
add edx, dword [esp + 0x1c]
cmp eax, ebp
jle 0x84d81a
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ecx, eax
imul ecx, ebp
mov edx, dword [esi + eax*4]
inc eax
mov dword [ecx + edi], edx
add ecx, ebp
cmp eax, ebx
jl 0x84d867
mov edx, dword [esp + 0x38]
cmp eax, edx
jge 0x84d8fe
mov edx, dword [esp + 0x5c]
lea edx, [edi + edx]
lea ecx, [ebp + ebp]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x60]
lea edx, [edi + edx]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x58]
lea edx, [edi + edx]
mov dword [esp + 0x48], edx
mov edx, eax
imul edx, ebp
add ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x50]
mov ebx, dword [edi + eax*4]
mov ebp, dword [edi + eax*4 + 4]
mov esi, dword [edi + eax*4 + 8]
mov ecx, dword [edi + eax*4 + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [edx + edi], ebx
mov ebx, dword [esp + 0x40]
add eax, 4
mov dword [ebx + edx], ebp
mov ebx, dword [esp + 0x44]
mov dword [ebx + edx], esi
mov ebx, dword [esp + 0x48]
mov dword [ebx + edx], ecx
mov ecx, dword [esp + 0x38]
add edx, dword [esp + 0x3c]
cmp eax, ecx
jl 0x84d8b4
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add edi, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x80]
cmp eax, edx
jl 0x84d796
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x84db63
mov eax, dword [esp + 0x50]
push eax
call fcn.00866880
pop ecx
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, dword [esp + 0x80]
cmp ecx, 1
je 0x84dbb8
mov eax, dword [edx + 0x1c]
mov edi, dword [edx + 0x28]
mov edx, dword [eax]
cmp edx, 4
jne 0x84da10
mov edi, dword [eax + 8]
mov edx, dword [esp + 0x80]
test edx, edx
mov dword [esp + 0x44], edi
mov edi, 0
jle 0x84db63
mov edx, dword [esp + 0x8c]
lea edx, [edx + edx]
add edx, edx
mov ebp, dword [esp + 0x98]
lea eax, [ebp + ebp]
add eax, eax
mov ebp, dword [esp + 0x94]
lea esi, [ebp + ebp]
add esi, esi
imul ebx, esi
mov ecx, dword [esp + 0x90]
add ebx, ecx
neg ebp
mov esi, edi
mov dword [esp + 0x48], ebp
imul esi, eax
add esi, ecx
mov ebp, edi
imul ebp, eax
add ebp, ebx
mov ebx, edi
imul ebx, edx
add ebx, dword [esp + 0x84]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x48]
push eax
mov ecx, dword [esp + 0x98]
push ecx
mov edx, dword [esp + 0x90]
push edx
push ebp
push esi
push ebx
mov eax, dword [esp + 0x5c]
call eax
add esp, 0x18
mov edx, dword [esp + 0x50]
add esi, edx
add ebp, edx
add ebx, dword [esp + 0x4c]
inc edi
mov eax, dword [esp + 0x80]
cmp edi, eax
jl 0x84d9d2
jmp 0x84db63
cmp edx, 5
jne 0x84dac7
mov ecx, dword [eax + 8]
xor edi, edi
mov edx, dword [esp + 0x80]
test edx, edx
jle 0x84db63
mov edx, dword [esp + 0x8c]
lea eax, [edx + edx]
add eax, eax
mov edx, dword [esp + 0x98]
lea edx, [edx + edx]
add edx, edx
mov esi, dword [esp + 0x88]
lea ebp, [esi + esi]
add ebp, ebp
imul ebx, ebp
mov ebp, dword [esp + 0x84]
add ebx, ebp
neg esi
mov dword [esp + 0x60], esi
mov esi, edi
imul esi, eax
add esi, ebp
mov ebp, edi
imul ebp, eax
add ebp, ebx
mov ebx, edi
imul ebx, edx
add ebx, dword [esp + 0x90]
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x94]
push eax
mov edx, dword [esp + 0x64]
push edx
mov ecx, dword [esp + 0x90]
push ecx
push ebx
push ebp
push esi
mov eax, dword [esp + 0x74]
call eax
add esp, 0x18
mov eax, dword [esp + 0x58]
add esi, eax
add ebp, eax
add ebx, dword [esp + 0x64]
inc edi
mov edx, dword [esp + 0x80]
cmp edi, edx
jl 0x84da89
jmp 0x84db63
xor esi, esi
mov edx, dword [esp + 0x80]
test edx, edx
jle 0x84db63
mov ecx, dword [esp + 0x8c]
lea ecx, [ecx + ecx]
add ecx, ecx
mov edx, dword [esp + 0x98]
lea edx, [edx + edx]
add edx, edx
mov ebp, esi
imul ebp, ecx
add ebp, dword [esp + 0x84]
mov dword [esp + 0x60], ebp
mov ebp, esi
imul ebp, edx
add ebp, dword [esp + 0x90]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
mov edx, ebx
mov ecx, ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edi
call fcn.0084dc08
add ebx, dword [esp + 0x4c]
inc esi
mov eax, dword [esp + 0x80]
add ebp, dword [esp + 0x48]
cmp esi, eax
jl 0x84db20
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
lea edx, [ebx + ebx]
add edx, edx
push edx
call fcn.00866808
mov dword [esp + 0x54], eax
add esp, 4
jmp 0x84d6f0
mov ebp, dword [edx + 0x1c]
mov esi, dword [esp + 0x88]
mov edi, dword [edx + 0x28]
mov dword [esp + 0xc], ebp
mov eax, ebx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x14], edi
call fcn.0084e6e4
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [edx + 0x1c]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x94]
mov dword [esp + 0xc], ebp
mov ecx, dword [edx + 0x28]
mov eax, ebx
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x84]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x90]
call fcn.0084dc08
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret