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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3f4]
test eax, eax
mov eax, dword [esp + 0xdc]
sete cl
movzx edx, cl
and eax, edx
mov dword [esp + 0x4c], edx
shl eax, 4
mov dword [esp + 0x3c], eax
mov eax, 0x20
sar eax, cl
mov edi, eax
mov dword [esp + 0x98], eax
mov eax, 5
sub eax, edx
mov ebp, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0x864]
add eax, 0x1f
and eax, 0xffffffe0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0x504]
cmp eax, 1
mov dword [esp + 0x58], eax
sete byte [esp + 0x8a]
cmp eax, 3
movzx ebx, byte [esp + 0x8a]
setne byte [esp + 0x8b]
movzx eax, byte [esp + 0x8b]
mov edx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], eax
mov ebx, eax
mov eax, 0x10
mov ecx, edx
mov esi, eax
mov edx, 1
sar esi, cl
mov ecx, ebx
mov ebx, dword [esp + 0xdc]
sar eax, cl
mov ecx, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x84], eax
mov eax, edx
imul ebx, edi
shl eax, cl
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x9c], ebx
mov eax, dword [eax + 0x85c]
sub eax, ebx
cmp eax, edi
cmovg eax, edi
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
movzx ecx, byte [esp + 0x8a]
add esi, eax
mov edi, dword [esp + 0xdc]
lea eax, [ebx + esi]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xd0]
shr eax, cl
mov ecx, ebp
shl edi, cl
mov ecx, ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xd0]
sub ecx, ebx
mov ebx, dword [esp + 0xdc]
mov esi, dword [esi + 0x860]
add edi, dword [eax + 0xdc4]
shl ebx, cl
add ebx, dword [eax + 0xdc8]
mov eax, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x8c], eax
movzx eax, word [eax + 0x232]
mov dword [esp + 0x74], esi
mov ebx, eax
shl ebx, cl
cmp esi, ebx
jle 0x684bebca
mov ebp, dword [esp + 0x3c]
mov esi, edx
mov ebx, dword [esp + 0x2c]
mov ecx, ebp
sub edi, ebp
add edi, dword [esp + 0x6c]
shl esi, cl
movzx ecx, byte [esp + 0x8a]
mov dword [esp + 0x34], edi
mov dword [esp + 0x7c], esi
mov esi, ebp
sar esi, cl
mov ecx, esi
mov dword [esp + 0x90], esi
mov esi, edx
shl esi, cl
mov edx, ecx
movzx ecx, byte [esp + 0x8a]
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x68]
sub ebx, edx
mov edx, 4
add ebx, dword [esp + 0x5c]
sub edx, dword [esp + 0x28]
sar esi, cl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x48], edx
add esi, 0x234
mov dword [esp + 0x50], esi
nop
lea esi, [esi]
mov edi, dword [esp + 0x4c]
and edi, eax
mov dword [esp + 0x54], edi
jne 0x684bef34
xor edx, edx
movzx ecx, byte [esp + 0x4c]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x7c]
sub edi, dword [esp + 0x38]
sar eax, cl
mov esi, dword [esp + 0x3c]
imul eax, eax, 0x544
add eax, dword [esp + 0xd8]
add edx, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x6c], esi
jbe 0x684beb8d
lea esi, [esi]
xor ecx, ecx
cmp ebp, 0xffff
mov edx, ebp
mov eax, dword [esp + 0x2c]
seta cl
shl ecx, 4
shr edx, cl
cmp ebp, 0x10000
sbb esi, esi
not esi
and esi, 2
add eax, esi
movzx ecx, word [eax + 8]
test ecx, edx
mov ebx, ecx
setne cl
movzx ecx, cl
mov dword [esp + 0x30], ecx
movzx ecx, word [eax + 4]
mov word [esp + 0x28], cx
mov ecx, edx
not ecx
and word [eax], cx
and ebx, ecx
mov word [eax + 8], bx
movzx ebx, word [esp + 0x28]
and ebx, ecx
movzx ecx, word [esp + 0x28]
mov word [eax + 4], bx
xor eax, eax
test ecx, edx
mov ecx, dword [esp + 0x30]
setne al
lea eax, [eax + ecx*2]
movzx ecx, byte [edi]
cmp eax, ecx
cmovg eax, ecx
add ebp, ebp
add edi, 1
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x2c]
or word [esi + eax], dx
cmp dword [esp + 0x34], edi
jne 0x684beb00
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x684bef50
mov edi, dword [esp + 0x50]
movzx ecx, byte [esp + 0x70]
mov esi, dword [esp + 0x78]
add dword [esp + 0x40], esi
movzx eax, word [edi]
add edi, 2
mov esi, dword [esp + 0x68]
mov dword [esp + 0x50], edi
mov edx, eax
add dword [esp + 0x34], esi
shl edx, cl
cmp edx, dword [esp + 0x74]
jl 0x684beab0
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0x868]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x684bf43c
mov eax, dword [esp + 0xe0]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0xd0]
sub eax, 1
imul eax, edi
imul eax, eax, 0x270
add eax, dword [esi + 0x9c4]
mov dword [esp + 0x48], eax
test edi, edi
jle 0x684bf41c
mov eax, dword [esp + 0x3c]
movzx ecx, byte [esp + 0x8a]
mov esi, dword [esi + 0x858]
lea edx, [eax + eax]
add edx, eax
sar eax, cl
movzx ecx, byte [esp + 0x84]
mov dword [esp + 0x68], esi
lea eax, [eax*8 + 0x400]
shl edx, 2
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xd8]
lea eax, [eax + edx + 0x180]
mov dword [esp + 0x2c], eax
mov eax, edi
shl eax, 5
sub esi, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
mov eax, 0xfffffe80
sub eax, edx
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x40]
mov eax, 0x20
mov ebp, 1
cmp edi, 0x20
cmovle eax, edi
mov edi, dword [esp + 0x48]
add edi, 0x1e0
mov dword [esp + 0x44], eax
lea esi, [eax + edi]
mov dword [esp + 0x34], esi
test eax, eax
je 0x684bed42
xor ecx, ecx
cmp ebp, 0xffff
mov edx, ebp
mov eax, dword [esp + 0x2c]
seta cl
shl ecx, 4
shr edx, cl
cmp ebp, 0x10000
sbb esi, esi
not esi
and esi, 2
add eax, esi
movzx ecx, word [eax + 8]
test ecx, edx
mov ebx, ecx
setne cl
movzx ecx, cl
mov dword [esp + 0x30], ecx
movzx ecx, word [eax + 4]
mov word [esp + 0x28], cx
mov ecx, edx
not ecx
and word [eax], cx
and ebx, ecx
mov word [eax + 8], bx
movzx ebx, word [esp + 0x28]
and ebx, ecx
movzx ecx, word [esp + 0x28]
mov word [eax + 4], bx
xor eax, eax
test ecx, edx
mov ecx, dword [esp + 0x30]
setne al
lea eax, [eax + ecx*2]
movzx ecx, byte [edi]
cmp eax, ecx
cmovg eax, ecx
add ebp, ebp
add edi, 1
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x2c]
or word [esi + eax], dx
cmp dword [esp + 0x34], edi
jne 0x684becb5
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x684bf050
sub dword [esp + 0x40], 0x20
mov eax, dword [esp + 0x40]
add dword [esp + 0x48], 0x270
add dword [esp + 0x2c], 0x544
cmp dword [esp + 0x50], eax
jne 0x684bec84
mov eax, dword [esp + 0xd0]
mov edi, dword [esp + 0xd0]
mov eax, dword [eax + 0x854]
mov edx, dword [edi + 0xb00]
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0xdc]
imul eax, dword [esp + 0x98]
lea eax, [edx + eax*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xd4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x4c], 0
xor ebp, ebp
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xd0]
add eax, 0xb30
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov esi, esi
lea edi, [edi]
mov edx, dword [esp + 0x4c]
mov esi, dword [edi + 0x4f4]
shl edx, 5
mov dword [esp + 0x34], esi
mov esi, dword [edi + 0x818]
sub eax, edx
mov edx, 0x20
cmp eax, 0x20
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x54]
cmovle edx, eax
xor ebx, ebx
mov dword [esp + 0x28], edx
test eax, eax
jg 0x684beefc
jmp 0x684bf006
movzx eax, word [esi]
movzx ecx, word [esi + 4]
movzx edx, word [esi + 8]
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x50], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
jle 0x684bee8d
movzx eax, word [esi + 2]
shl eax, 0x10
or eax, dword [esp + 0x50]
mov dword [esp + 0xa0], eax
movzx eax, word [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, word [esi + 0xa]
mov dword [esp + 0xa4], ecx
shl eax, 0x10
or edx, eax
mov dword [esp + 0xa8], edx
mov eax, dword [edi + 0xabc]
mov dword [esp + 0xac], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea eax, [eax + ebx*4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + ebx*8]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call dword [eax + 0x660]
add ebx, 1
add esi, 0xc
cmp dword [esp + 0x28], ebx
jle 0x684bf000
mov eax, ebp
or eax, ebx
je 0x684beeec
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x684bee30
movzx eax, word [esi + 2]
mov dword [esp + 0xa0], eax
movzx eax, word [esi + 6]
mov dword [esp + 0xa4], eax
movzx eax, word [esi + 0xa]
mov dword [esp + 0xa8], eax
jmp 0x684bee8d
mov edi, dword [esp + 0x84]
mov edx, 0xc0
mov dword [esp + 0x54], edi
jmp 0x684beac2
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
lea edi, [eax + edi*8 + 0x300]
mov eax, dword [esp + 0x90]
cmp esi, eax
jbe 0x684beb99
sub eax, esi
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x28], edi
lea ebp, [eax + esi]
mov edi, ebp
nop
lea esi, [esi]
mov ebx, dword [esp + 0x44]
xor eax, eax
movzx ecx, byte [esp + 0x48]
mov esi, edx
cmp ebx, edx
setbe al
shl eax, cl
mov ecx, eax
shr esi, cl
cmp edx, ebx
mov ebx, dword [esp + 0x28]
sbb eax, eax
mov ebp, esi
not eax
not ebp
and eax, 2
mov word [esp + 0x2c], bp
add ebx, eax
movzx ecx, word [ebx + 4]
and ebp, ecx
mov word [ebx + 4], bp
movzx ebp, word [esp + 0x2c]
and word [ebx], bp
test ecx, esi
movzx ebx, byte [edi]
setne cl
movzx ecx, cl
cmp ecx, ebx
cmovg ecx, ebx
mov ebx, dword [esp + 0x28]
add edx, edx
add edi, 1
lea eax, [eax + ecx*4]
or word [ebx + eax], si
cmp dword [esp + 0x40], edi
jne 0x684bef90
jmp 0x684beb99
mov ecx, dword [edi + 0x868]
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
add dword [esp + 0x2c], 0x100
sub dword [esp + 0x30], 0xffffff80
add dword [esp + 0x54], 0x544
cmp ecx, eax
jle 0x684bf110
mov esi, dword [edi + 0x854]
mov eax, dword [edi + 0x858]
mov ebp, 1
mov dword [esp + 0x44], esi
jmp 0x684bedf0
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
add edx, dword [esp + 0x54]
add eax, edi
mov ecx, edi
add edx, dword [esp + 0x2c]
shr eax, cl
mov ebp, edx
test eax, eax
je 0x684bed4e
mov edx, 4
mov dword [esp + 0x28], ebp
sub edx, edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x44], edx
mov edx, 1
add edi, 0x200
add eax, edi
mov dword [esp + 0x34], eax
nop
lea esi, [esi]
mov ebx, dword [esp + 0x4c]
xor eax, eax
movzx ecx, byte [esp + 0x44]
mov esi, edx
cmp ebx, edx
setbe al
shl eax, cl
mov ecx, eax
shr esi, cl
cmp edx, ebx
mov ebx, dword [esp + 0x28]
sbb eax, eax
mov ebp, esi
not eax
not ebp
and eax, 2
mov word [esp + 0x30], bp
add ebx, eax
movzx ecx, word [ebx + 4]
and ebp, ecx
mov word [ebx + 4], bp
movzx ebp, word [esp + 0x30]
and word [ebx], bp
test ecx, esi
movzx ebx, byte [edi]
setne cl
movzx ecx, cl
cmp ecx, ebx
cmovg ecx, ebx
mov ebx, dword [esp + 0x28]
add edx, edx
add edi, 1
lea eax, [eax + ecx*4]
or word [ebx + eax], si
cmp dword [esp + 0x34], edi
jne 0x684bf0a0
jmp 0x684bed4e
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x64], ecx
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x4d8]
mov dword [esp + 0x8c], eax
test edi, edi
jne 0x684bf144
mov eax, dword [esp + 0x8c]
mov esi, dword [eax + 0x4dc]
test esi, esi
je 0x684bf431
mov eax, dword [esp + 0xd0]
movzx ecx, byte [esp + 0x8a]
mov ebx, dword [esp + 0x64]
mov edi, dword [eax + 0x854]
mov edx, dword [eax + 0xb00]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x30], edi
sar eax, cl
imul eax, edi
shl eax, 2
test ebx, ebx
jle 0x684bf431
mov ebp, dword [esp + 0x3c]
mov ebx, 0x20
lea eax, [edx + eax + 2]
xor esi, esi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
sar ebp, cl
movzx ecx, byte [esp + 0x8b]
mov dword [esp + 0x44], 0
sub eax, ebp
mov dword [esp + 0x54], ebp
sar ebx, cl
mov dword [esp + 0x58], 0
lea edi, [ebx*4]
mov ebx, pe_nt_image_headers32
mov dword [esp + 0x38], eax
sar ebx, cl
mov dword [esp + 0x68], edi
lea edi, [ebx + ebx]
mov dword [esp + 0x28], esi
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0xd0]
lea esi, [esi]
mov eax, dword [esp + 0x58]
mov esi, dword [edi + 0x858]
mov edx, 0x20
shl eax, 5
sub esi, eax
cmp esi, 0x20
mov eax, esi
mov esi, dword [esp + 0x80]
cmovg eax, edx
lea edx, [edi + 0xb30]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x34], edx
add eax, esi
mov esi, dword [edi + 0x4f8]
sar eax, cl
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0xd4]
mov dword [esp + 0x40], eax
mov esi, dword [esi + 8]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0xd4]
mov esi, dword [esi + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [edi + 0x818]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x64]
test eax, eax
jle 0x684bf3dc
mov dword [esp + 0xd0], edi
jmp 0x684bf39a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
movzx ebp, word [eax + ebx*8 + 0x300]
movzx edx, word [eax + ebx*8 + 0x304]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], edx
cmp ecx, edi
jge 0x684bf2c9
movzx eax, word [eax + ebx*8 + 0x302]
shl eax, cl
or ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa0], ebp
movzx eax, word [eax + ebx*8 + 0x306]
shl eax, cl
or edx, eax
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xd0]
lea ebp, [ebx*8]
mov dword [esp + 0xa8], 0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x50]
mov eax, dword [eax + 0xabc]
mov dword [esp + 0x14], edx
lea edx, [esp + 0xa0]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
add edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, edx
add eax, ebp
mov dword [esp], eax
call dword [edi + 0x668]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x34]
mov eax, dword [ecx + 0xabc]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], edx
lea edx, [esp + 0xa0]
mov dword [esp + 8], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
lea eax, [esi + 1]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x28]
add ebp, eax
mov dword [esp], ebp
call dword [edi + 0x668]
add ebx, 1
add esi, 4
cmp dword [esp + 0x40], ebx
je 0x684bf3d5
mov eax, dword [esp + 0x44]
or eax, ebx
je 0x684bf38a
mov edx, dword [esp + 0x54]
test edx, edx
je 0x684bf271
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + ebx*8 + 0x302]
mov dword [esp + 0xa0], eax
movzx eax, word [edx + ebx*8 + 0x306]
mov dword [esp + 0xa4], eax
jmp 0x684bf2c9
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0x6c]
add dword [esp + 0x58], 1
add dword [esp + 0x28], edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
add dword [esp + 0x3c], 0x544
add dword [esp + 0x64], edx
cmp dword [edi + 0x868], eax
jle 0x684bf431
mov eax, dword [edi + 0x854]
mov dword [esp + 0x44], 1
mov dword [esp + 0x30], eax
jmp 0x684bf1f0
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x4d8]
test eax, eax
je 0x684bf12f
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xd0]
mov edi, dword [esp + 0xd0]
mov eax, dword [eax + 0x854]
mov edx, dword [edi + 0xb00]
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0xdc]
imul eax, dword [esp + 0x98]
lea eax, [edx + eax*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xd4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x684bf41c
mov eax, dword [edi + 0x858]
mov dword [esp + 0x68], eax
jmp 0x684bedb3