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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x4c0
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x5a4]
test ebx, ebx
mov dword [esp + 0x5c], edx
setne dl
cmp ecx, 1
mov dword [esp + 0x58], eax
sete bl
movzx eax, dl
and ebx, edx
cmp ecx, 3
setne cl
movzx ecx, cl
mov esi, ecx
and esi, edx
lea edx, [eax + 0x164]
add eax, 0x154
mov edx, dword [edi + edx*4 + 4]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + eax*4 + 0x18]
mov eax, 1
shl eax, cl
mov ecx, ebx
mov edx, eax
mov edi, eax
mov dword [esp + 0x6c], eax
sar edx, 1
add eax, edx
mov dword [esp + 0x50], eax
mov eax, 8
sar eax, cl
xor ecx, ecx
cmp dword [esp + 0x48], 0
setne cl
imul eax, ecx
mov ecx, 7
add eax, dword [esp + 0x48]
sub ecx, esi
mov dword [esp + 0x44], ecx
xor ecx, ecx
cmp dword [esp + 0x48], 0
setg cl
neg edi
lea ecx, [ecx*4 + 2]
mov dword [esp + 0x54], ecx
and eax, edi
je 0x684a4951
add edx, eax
cmp edx, dword [ebp + 0xc]
jle 0x684a492f
sub eax, dword [esp + 0x6c]
mov ecx, ebx
shl eax, cl
mov edx, eax
sar eax, 7
shr edx, 5
and edx, 2
mov ebx, edx
mov dword [esp + 0x4c], edx
lea edx, [edx*4]
add edx, ebx
add edx, edx
jmp 0x684a495b
mov dword [esp + 0x4c], 0
xor edx, edx
mov edi, dword [esp + 0x58]
imul eax, dword [edi + 0x87c]
mov ebx, eax
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xb08]
imul ecx, ebx, 0x78
mov ebx, dword [ebp + 0x14]
lea ebx, [ebx + ebx*4]
lea edi, [ebx*8]
add ecx, eax
mov ebx, dword [esp + 0x4c]
add edx, edi
mov dword [esp + 0x3c], edi
add edx, ecx
mov dword [esp + 0x78], edx
lea edx, [ebx*4]
add edx, ebx
xor ebx, ebx
lea edx, [edi + edx*2]
cmp byte [ecx + edx], 0
mov edx, dword [esp + 0x50]
setne bl
mov dword [esp + 0x64], ebx
cmp edx, dword [ebp + 8]
jg 0x684a4b1c
mov ebx, dword [esp + 0x6c]
mov edx, 6
mov dword [esp + 0x68], 0
sub edx, esi
mov dword [esp + 0x34], edi
sub ebx, 4
mov dword [esp + 0x38], edx
xor edx, edx
mov dword [esp + 0x28], ebx
jmp 0x684a4a14
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x6c]
or dword [esp + 0x54], 1
add dword [esp + 0x5c], edx
add eax, ebx
cmp dword [ebp + 8], eax
jl 0x684a4b30
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x68], ebx
mov eax, dword [eax + 0xb08]
mov dword [esp + 0x64], edx
mov edx, esi
movzx ecx, byte [esp + 0x38]
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0x68]
mov edi, ebx
mov esi, ebx
sar edi, cl
movzx ecx, byte [esp + 0x44]
and edi, 1
or edi, dword [esp + 0x4c]
sar esi, cl
mov ecx, dword [esp + 0x40]
add ecx, esi
mov esi, edx
imul ecx, ecx, 0x78
xor esi, 1
add eax, ecx
lea ecx, [edi + edi*4]
mov edi, dword [esp + 0x3c]
add ecx, ecx
add edi, ecx
add ecx, dword [esp + 0x34]
add edi, eax
movzx eax, byte [eax + ecx]
xor ecx, ecx
mov dword [esp + esi*4 + 0x78], edi
test al, al
setne cl
mov dword [esp + 0x60], ecx
jne 0x684a4ad0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x684a49e0
imul eax, esi, 0x220
lea ecx, [esp + eax + 0x80]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + edx*4 + 0x78]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
call fcn.684a4560
jmp 0x684a49e0
imul ecx, edx, 0x220
mov eax, dword [ebp + 0x10]
sub eax, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
add edi, dword [esp + 0x28]
lea ecx, [esp + ecx + 0x80]
test eax, eax
jle 0x684a4a6b
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov ebx, dword [edi]
add ecx, 4
add edi, edx
mov dword [ecx - 4], ebx
sub eax, 1
jne 0x684a4b00
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x684a4a6b
mov eax, dword [esp + 0x64]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x60], eax
nop
lea esi, [esi]
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x684a4b40
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
mov edx, dword [esp + 0x5c]
xor eax, 1
imul eax, eax, 0x220
lea ecx, [esp + eax + 0x80]
mov eax, dword [esp + 0x54]
and eax, 0xfffffffd
mov dword [esp + 0x18], eax
mov eax, dword [esp + esi*4 + 0x78]
mov dword [esp], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
call fcn.684a4560
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret