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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
and esp, 0xfffffff0
sub esp, 0x910
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x5a4]
test eax, eax
mov dword [esp + 0x6c], edx
setne dl
cmp ecx, 1
sete bl
movzx eax, dl
mov edi, ebx
xor ebx, ebx
and edi, edx
cmp ecx, 3
setne bl
and ebx, edx
lea edx, [eax + 0x164]
add eax, 0x154
mov edx, dword [esi + edx*4 + 4]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
mov esi, dword [edx + eax*4 + 0x18]
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, edi
mov edx, eax
sar eax, 1
mov dword [esp + 0x68], edx
add edx, eax
mov dword [esp + 0x54], edx
mov edx, 8
sar edx, cl
xor ecx, ecx
cmp dword [esp + 0x48], 0
setne cl
imul edx, ecx
mov ecx, 7
add edx, dword [esp + 0x48]
sub ecx, ebx
mov dword [esp + 0x44], ecx
xor ecx, ecx
cmp dword [esp + 0x48], 0
setg cl
lea ecx, [ecx*4 + 2]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x68]
neg ecx
and edx, ecx
je 0x684c2902
add eax, edx
cmp eax, dword [ebp + 0xc]
jg 0x684c2911
mov eax, edx
mov ecx, edi
shl eax, cl
mov edx, eax
shr eax, 5
and eax, 2
sar edx, 7
mov edi, eax
mov dword [esp + 0x58], eax
lea eax, [eax*4]
add eax, edi
add eax, eax
mov edi, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
imul edx, dword [edi + 0x87c]
lea ecx, [ecx + ecx*4]
mov edi, dword [edi + 0xb08]
shl ecx, 3
add eax, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edx
imul edx, edx, 0x78
add edx, edi
add eax, edx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x58]
shl eax, 2
add eax, dword [esp + 0x58]
lea eax, [ecx + eax*2]
cmp byte [edx + eax], 0
setne al
movzx eax, al
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x54]
cmp eax, dword [ebp + 8]
jg 0x684c28e0
mov eax, dword [esp + 0x68]
mov ecx, esi
xor edx, edx
mov dword [esp + 0x7c], 0
lea eax, [eax + eax - 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
and eax, 0xfffffffe
mov dword [esp + 0x50], eax
mov eax, 2
shl eax, cl
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov eax, 6
sub eax, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jmp 0x684c2782
mov ecx, dword [esp + 0x74]
test ecx, ecx
jne 0x684c287e
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
or dword [esp + 0x60], 1
add dword [esp + 0x6c], edi
add eax, ebx
cmp dword [ebp + 8], eax
jl 0x684c28f2
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x7c], ebx
mov edi, dword [eax + 0xb08]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], eax
movzx ecx, byte [esp + 0x38]
mov ebx, dword [esp + 0x68]
add ebx, dword [esp + 0x7c]
mov eax, ebx
mov esi, ebx
sar eax, cl
movzx ecx, byte [esp + 0x44]
and eax, 1
or eax, dword [esp + 0x58]
sar esi, cl
mov ecx, dword [esp + 0x40]
lea eax, [eax + eax*4]
add eax, eax
add ecx, esi
mov esi, edx
imul ecx, ecx, 0x78
xor esi, 1
mov dword [esp + 0x78], esi
add edi, ecx
mov ecx, dword [esp + 0x4c]
add ecx, eax
add eax, dword [esp + 0x34]
movzx eax, byte [edi + eax]
add ecx, edi
mov dword [esp + esi*4 + 0x88], ecx
xor ecx, ecx
test al, al
setne cl
mov dword [esp + 0x70], ecx
je 0x684c2740
imul esi, edx, 0x440
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x90]
sub edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x24]
add esi, eax
test edi, edi
jle 0x684c2740
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
mov ebx, edi
mov edi, esi
mov dword [esp + 0x2c], edx
mov esi, ecx
and eax, 1
mov dword [esp + 0x5c], eax
jmp 0x684c282d
add esi, dword [esp + 0x50]
test ebx, ebx
je 0x684c286a
mov edx, dword [esi + 4]
mov eax, dword [esi]
sub ebx, 1
add edi, 8
mov dword [edi - 4], edx
mov edx, dword [esp + 0x5c]
mov dword [edi - 8], eax
test edx, edx
je 0x684c2825
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbe14
mov dword [esp], 0x684fbe4e
call fcn.684d2880
add esi, dword [esp + 0x50]
test ebx, ebx
jne 0x684c282d
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
test ecx, ecx
je 0x684c274c
imul ecx, dword [esp + 0x78], 0x440
lea eax, [esp + 0x90]
add ecx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + edx*4 + 0x88]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
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 + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
call fcn.684c21d0
jmp 0x684c274c
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], 0
xor ebx, ebx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x684c2920
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x58], 0
xor eax, eax
jmp 0x684c2698
sub edx, dword [esp + 0x68]
jmp 0x684c2676
mov edx, dword [esp + 0x78]
mov eax, edx
xor eax, 1
imul eax, eax, 0x440
lea ecx, [esp + eax + 0x90]
mov eax, dword [esp + 0x60]
and eax, 0xfffffffd
mov dword [esp + 0x18], eax
mov eax, dword [esp + edx*4 + 0x88]
mov dword [esp], ebx
mov edx, dword [esp + 0x6c]
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 + 0x64]
call fcn.684c21d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret