Function at 0x684a1f10
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 esi, dword [eax + 0x3f4]
mov eax, 0x20
test esi, esi
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 + 0x60], eax
cmp eax, 1
mov eax, ebx
sete byte [esp + 0x6f]
imul eax, ecx
mov dword [esp + 0x34], edi
mov edx, eax
mov dword [esp + 0x5c], 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 + 0x2c], eax
mov eax, dword [ebp + 0x854]
imul ebx, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x868]
imul ebx, ecx
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov dword [esp + 0x40], ecx
test eax, eax
jle 0x684a2382
shl esi, 5
lea eax, [ebx*4]
mov ecx, esi
lea eax, [edx + eax + 1]
add ecx, edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x50], eax
lea eax, [ebp + 0xb30]
mov dword [esp + 0x58], eax
lea edi, [edi + ecx*4 + 0x180]
xor ecx, ecx
mov dword [esp + 0x4c], edi
lea esi, [esi]
mov eax, ecx
mov ebx, dword [ebp + 0x858]
mov edi, dword [esp + 0x34]
shl eax, 5
sub ebx, eax
mov eax, 0x20
cmp ebx, 0x20
cmovg ebx, eax
mov eax, dword [ebp + 0x4f4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x818]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x2c], edi
jle 0x684a20df
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x48], ebx
shl eax, 2
mov dword [esp + 0xa0], ebp
mov ebp, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
shl eax, 2
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [esp + 0x3c]
or eax, edi
je 0x684a20c0
mov eax, dword [esi]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x70], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
call dword [eax + 0x664]
add edi, 1
add ebx, dword [esp + 0x38]
add esi, 0xc
add ebp, dword [esp + 0x44]
cmp dword [esp + 0x2c], edi
jne 0x684a2063
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0xa0]
mov eax, dword [ebp + 0x868]
add ecx, 1
sub dword [esp + 0x40], 0xffffff80
add dword [esp + 0x4c], 0x544
sub dword [esp + 0x50], 0xffffff80
cmp eax, ecx
jle 0x684a2110
mov eax, dword [ebp + 0x854]
mov dword [esp + 0x24], eax
jmp 0x684a1ff0
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x4d8]
test ecx, ecx
je 0x684a23a0
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [esp + 0x6f]
mov edi, dword [ebp + 0x854]
mov esi, dword [ebp + 0xb00]
sar ebx, cl
imul ebx, edi
mov dword [esp + 0x24], edi
shl ebx, 2
test eax, eax
jle 0x684a238f
cmp dword [esp + 0x60], 3
mov edx, 0x10
mov dword [esp + 0x54], 0
setne al
movzx edi, al
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x34]
sar edi, cl
mov ecx, eax
sar edx, cl
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x5c], edx
mov edx, pe_nt_image_headers32
sar edx, cl
mov dword [esp + 0x60], edx
mov edx, 0x20
sar edx, cl
lea eax, [edx*4]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 0x6f]
mov ecx, eax
add eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
shr eax, cl
mov dword [esp + 0x44], eax
lea eax, [esi + ebx + 2]
mov dword [esp + 0x58], eax
lea eax, [ebp + 0xb30]
mov dword [esp + 0x40], eax
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x2c]
mov esi, dword [ebp + 0x858]
mov edx, 0x20
shl eax, 5
sub esi, eax
cmp esi, 0x20
mov eax, esi
mov esi, dword [esp + 0x68]
cmovg eax, edx
mov ecx, esi
add eax, esi
sar eax, cl
mov ecx, dword [ebp + 0x818]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x4f8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 4]
cmp dword [esp + 0x50], ecx
jge 0x684a234c
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa0], ebp
lea edx, [ecx*4]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x24]
lea ebx, [edx*4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x54]
add esi, ebx
lea edx, [eax + ebx]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x58]
mov ebp, edx
mov eax, dword [esp + 0x3c]
or eax, ebx
je 0x684a232a
mov edx, dword [esp + 0x5c]
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]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], esi
or eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call dword [edx + 0x66c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esi + 1]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx + 0x66c]
mov eax, dword [esp + 0x48]
add ebx, 1
add esi, dword [esp + 0x4c]
add dword [esp + 0x38], eax
add ebp, eax
cmp ebx, dword [esp + 0x44]
jne 0x684a2265
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x60]
add dword [esp + 0x2c], 1
add edi, 0x544
add dword [esp + 0x54], esi
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x64]
add dword [esp + 0x58], esi
cmp dword [ebp + 0x868], eax
jle 0x684a238f
mov eax, dword [ebp + 0x854]
mov dword [esp + 0x24], eax
jmp 0x684a21d0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x4d8]
test eax, eax
je 0x684a23a0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [edx + 0x4dc]
test edx, edx
je 0x684a238f
mov eax, dword [ebp + 0x868]
jmp 0x684a2121