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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
lea edi, [ebp - 0x3a]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebx, edx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3a]
mov edx, dword [0x67d138]
call fcn.0040c558
xor eax, eax
push ebp
push 0x6851bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x40]
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
test ebx, ebx
je 0x684c74
mov eax, ebx
call fcn.004bb75c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
jmp 0x684c90
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x4c]
push edx
push eax
lea eax, [ebp - 0x3a]
call fcn.006820ac
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea eax, [ebp - 0x3a]
call fcn.00682234
movzx eax, word [ebp - 0x3a]
mov edx, eax
and dx, 0xff
cmp dx, 0x14
jae 0x684cd1
and ax, 0xff00
add ax, 0x14
mov word [ebp - 0x3a], ax
cmp word [ebp - 0x38], 0x14
jae 0x684cde
mov word [ebp - 0x38], 0x14
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x684ce8
mov eax, dword [eax - 4]
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x684cf6
mov eax, dword [eax - 4]
mov word [ebp - 0x20], ax
cmp dword [ebp + 8], 0
jne 0x684d08
lea eax, [ebp - 0x3a]
mov dword [ebp + 8], eax
jmp 0x684d44
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x74], 0
setne cl
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00682370
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2a]
test eax, eax
je 0x684d29
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov word [edx + 0x18], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2e]
test eax, eax
je 0x684d3d
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov word [edx + 0x1a], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x32]
test eax, eax
je 0x684d51
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov word [edx + 0x1c], ax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004bb77c
mov eax, dword [0x69e37c]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 4
call fcn.006811bc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 0x1a
call fcn.006811bc
movzx ecx, word [ebp - 0x22]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x10]
call fcn.0068110c
cmp word [ebp - 0x20], 0
jbe 0x684dc2
movzx ecx, word [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
call fcn.0068110c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004bb75c
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
test ebx, ebx
je 0x685073
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x74], 0
jne 0x684df2
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x70], eax
jmp 0x684ec3
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x78], 0
jne 0x684e12
mov ecx, dword [0x69e3e0]
mov dl, 1
mov eax, dword [0x67d358]
call fcn.0042f884
call fcn.00409f44
lea eax, [ebp - 0x3a]
mov cl, 1
xor edx, edx
call fcn.00682370
push 0x4000
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404c80]
call fcn.0040d9d0
add esp, 4
jmp 0x684e7a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x684e50
mov eax, dword [ebp - 0x74]
mov eax, dword [eax - 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x20]
mov dword [ebp - 0x78], eax
mov esi, dword [ebp - 0x78]
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x2e]
push eax
call fcn.0053ff64
add esp, 0xc
mov dword [ebp - 0x2e], eax
mov eax, ebx
call fcn.004bb75c
cmp edx, dword [ebp - 0x54]
jne 0x684e8d
cmp eax, dword [ebp - 0x58]
jb 0x684e3b
jmp 0x684e8f
jl 0x684e3b
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov eax, ebx
call fcn.004bb77c
mov eax, dword [ebp - 0x2e]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x78]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
mov dl, 1
mov eax, dword [0x681a80]
call fcn.00685ef8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x40]
add eax, 0x3c
lea edx, [ebp - 0x3a]
mov ecx, dword [0x67d138]
call fcn.0040c694
movzx eax, byte [ebp - 0x34]
mov byte [ebp - 0x69], al
movzx edx, byte [ebp - 0x69]
mov eax, dword [ebp - 0x40]
call fcn.00683150
lea eax, [ebp - 0x3a]
push eax
movzx edx, byte [ebp - 0x69]
lea ecx, [ebp - 0x8c]
mov eax, dword [0x6a5ccc]
call fcn.0068689c
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x70]
mov esi, dword [eax]
call dword [esi + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov edx, dword [0x536804]
call fcn.00408d6c
test al, al
je 0x684f38
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x18], 0x683c38
xor eax, eax
push ebp
push 0x68506c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x74], 0
je 0x684f71
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x4c]
push edx
push eax
mov ecx, 0x100000
mov edx, ebx
mov eax, dword [ebp - 0x5c]
call fcn.004bce2c
jmp 0x684ff6
push 0x4000
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404c80]
call fcn.0040d9d0
add esp, 4
jmp 0x684fe1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x684fa3
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax - 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x20]
mov dword [ebp - 0x80], eax
mov esi, dword [ebp - 0x80]
push esi
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax]
call dword [edi + 0x24]
mov dword [ebp - 0x84], eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x2e]
push eax
call fcn.0053ff64
add esp, 0xc
mov dword [ebp - 0x2e], eax
mov eax, ebx
call fcn.004bb75c
cmp edx, dword [ebp - 0x54]
jne 0x684ff4
cmp eax, dword [ebp - 0x58]
jb 0x684f8e
jmp 0x684ff6
jl 0x684f8e
mov eax, dword [ebp - 0x40]
cmp word [eax + 0x32], 0
je 0x685023
mov eax, dword [ebp - 0x40]
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x5c]
call fcn.004bb75c
push edx
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x685073
mov eax, dword [ebp - 0x5c]
call fcn.00408a84
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x70]
je 0x68504b
mov eax, dword [ebp - 0x70]
call fcn.00408a84
mov eax, dword [ebp - 0x40]
add eax, 0x3c
mov edx, dword [0x67d138]
call fcn.0040bef0
mov edi, eax
xor eax, eax
mov ecx, 0xd
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop eax
jmp eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004bb75c
sub eax, dword [ebp - 0x68]
sbb edx, dword [ebp - 0x64]
push edx
push eax
lea eax, [ebp - 0x3a]
call fcn.0068216c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x26]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2a]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2e]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
movzx edx, word [ebp - 0x20]
mov word [eax + 0x1a], dx
mov eax, dword [ebp + 8]
add eax, 0x2e
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x404c80]
call fcn.0040db38
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004bb75c
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
lea eax, [ebp - 0x3a]
call fcn.006821f8
add eax, 4
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004bb77c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 0x1a
call fcn.006811bc
cmp word [ebp - 0x20], 0
jbe 0x685135
movzx ecx, word [ebp - 0x22]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x10]
call fcn.0068110c
movzx ecx, word [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
call fcn.0068110c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x685142
mov eax, dword [eax - 4]
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x40]
add eax, 0x20
mov ecx, 1
mov edx, dword [0x680eb0]
call fcn.0040d9d0
add esp, 4
lea eax, [ebx + ebx*2]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 0x20]
lea eax, [edx + eax*2]
mov edx, dword [ebp + 8]
mov ecx, dword [0x67d138]
call fcn.0040c694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6851c2
lea eax, [ebp - 0x8c]
mov edx, dword [0x67e67c]
call fcn.0040bef0
lea eax, [ebp - 0x3a]
mov edx, dword [0x67d138]
call fcn.0040bef0
lea eax, [ebp - 4]
mov edx, dword [0x404c80]
call fcn.0040daf4
pop eax
jmp eax