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

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xa0]
test ebx, ebx
setg al
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x3f4]
test eax, eax
mov eax, 0x20
sete cl
sar eax, cl
movzx esi, cl
and esi, ebx
mov ecx, eax
mov eax, dword [ebp + 0x504]
mov edi, esi
shl edi, 4
mov dword [esp + 0x64], eax
cmp eax, 1
mov eax, ebx
sete byte [esp + 0x6c]
imul eax, ecx
mov dword [esp + 0x38], edi
mov edx, eax
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x85c]
sub eax, edx
mov edx, dword [ebp + 0xb00]
cmp eax, ecx
cmovg eax, ecx
add eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x854]
imul ebx, eax
mov dword [esp + 0x28], eax
imul ebx, ecx
mov ecx, dword [ebp + 0x868]
lea eax, [ebx*4]
mov ebx, dword [esp + 0xa4]
mov ebx, dword [ebx]
mov dword [esp + 0x40], ebx
test ecx, ecx
jle 0x684bf9c0
shl esi, 5
lea eax, [edx + eax + 1]
mov dword [esp + 0x20], 0
mov ecx, esi
mov dword [esp + 0x54], eax
lea eax, [ebp + 0xb30]
add ecx, edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x5c], eax
lea edi, [edi + ecx*4 + 0x180]
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x20]
mov ebx, dword [ebp + 0x858]
mov edi, dword [esp + 0x38]
shl eax, 5
sub ebx, eax
mov eax, 0x20
cmp ebx, 0x20
cmovg ebx, eax
mov eax, dword [ebp + 0x4f4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x818]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x30], edi
jle 0x684bf6b4
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0x38]
mov eax, edx
and edx, 1
mov ebx, edi
sar eax, 1
mov edi, esi
mov dword [esp + 0x4c], edx
shl eax, 3
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
shl eax, 2
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov esi, eax
jmp 0x684bf619
mov ecx, dword [esp + 0x48]
add esi, dword [esp + 0x44]
add ebx, 0xc
add dword [esp + 0x24], ecx
cmp dword [esp + 0x30], edi
je 0x684bf6b4
mov eax, dword [esp + 0x3c]
or eax, edi
je 0x684bf684
mov ecx, dword [ebx]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0xabc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
call dword [eax + 0x664]
mov eax, dword [esp + 0x4c]
add edi, 1
test eax, eax
je 0x684bf600
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbd30
mov dword [esp], 0x684fbd6a
call fcn.684d2880
jmp 0x684bf600
add dword [esp + 0x20], 1
mov eax, dword [ebp + 0x868]
mov edx, dword [esp + 0x20]
add dword [esp + 0x40], 0x100
add dword [esp + 0x58], 0x544
sub dword [esp + 0x54], 0xffffff80
cmp eax, edx
jle 0x684bf6f0
mov eax, dword [ebp + 0x854]
mov dword [esp + 0x28], eax
jmp 0x684bf583
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x4d8]
test ebx, ebx
je 0x684bf9e0
mov ebx, dword [esp + 0x60]
movzx ecx, byte [esp + 0x6c]
mov edi, dword [ebp + 0x854]
mov esi, dword [ebp + 0xb00]
sar ebx, cl
imul ebx, edi
mov dword [esp + 0x20], edi
shl ebx, 2
test eax, eax
jle 0x684bf9cd
cmp dword [esp + 0x64], 3
mov edx, 0x10
lea esi, [esi + ebx + 2]
mov dword [esp + 0x58], 0
setne al
mov dword [esp + 0x5c], esi
movzx edi, al
mov dword [esp + 0x28], 0
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x38]
sar edi, cl
mov ecx, eax
sar edx, cl
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edx
mov edx, 0x20
sar edx, cl
lea edi, [edx*4]
movzx edx, byte [esp + 0x6c]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0xa8]
mov ecx, edx
add edx, dword [esp + 0x30]
shr edx, cl
mov ecx, eax
mov dword [esp + 0x44], edx
mov edx, pe_nt_image_headers32
sar edx, cl
lea eax, [edx + edx]
mov dword [esp + 0x6c], eax
lea eax, [ebp + 0xb30]
mov dword [esp + 0x40], eax
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x858]
mov ecx, 0x20
mov ebx, dword [esp + 0xa4]
shl eax, 5
sub esi, eax
cmp esi, 0x20
mov eax, esi
mov esi, dword [esp + 0x68]
cmovg eax, ecx
mov ecx, esi
add eax, esi
mov esi, dword [esp + 0x44]
sar eax, cl
mov ecx, dword [ebx + 4]
mov ebx, dword [ebp + 0x818]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x4f8]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 8]
cmp dword [esp + 0x54], esi
jge 0x684bf980
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov edx, esi
sar esi, 1
lea esi, [esi*8]
shl ebx, 2
and edx, 1
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x54]
add ecx, esi
add eax, esi
mov dword [esp + 0x50], edx
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jmp 0x684bf86a
mov edx, dword [esp + 0x48]
add esi, dword [esp + 0x4c]
add dword [esp + 0x34], edx
add dword [esp + 0x38], edx
cmp ebx, dword [esp + 0x44]
je 0x684bf980
mov eax, dword [esp + 0x3c]
or eax, ebx
je 0x684bf947
mov edx, dword [esp + 0x60]
movzx eax, word [edi + ebx*8 + 0x402]
mov dword [esp + 0x78], 0
mov ecx, edx
shl eax, cl
movzx ecx, word [edi + ebx*8 + 0x400]
or eax, ecx
mov ecx, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x70], eax
movzx eax, word [edi + ebx*8 + 0x406]
shl eax, cl
movzx ecx, word [edi + ebx*8 + 0x404]
or eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xabc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], esi
call dword [edx + 0x66c]
mov eax, dword [ebp + 0xabc]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esi + 1]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx + 0x66c]
mov edx, dword [esp + 0x50]
add ebx, 1
test edx, edx
je 0x684bf850
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbd30
mov dword [esp], 0x684fbd6a
call fcn.684d2880
jmp 0x684bf850
add dword [esp + 0x28], 1
mov ebx, dword [esp + 0x64]
add edi, 0x544
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
add dword [esp + 0x5c], ebx
add dword [esp + 0x58], esi
cmp dword [ebp + 0x868], eax
jle 0x684bf9cd
mov eax, dword [ebp + 0x854]
mov dword [esp + 0x20], eax
jmp 0x684bf7b0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x4d8]
test eax, eax
je 0x684bf9e0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [edx + 0x4dc]
test ecx, ecx
je 0x684bf9cd
mov eax, dword [ebp + 0x868]
jmp 0x684bf701