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

Disassembly:
sub esp, 0x298
push ebx
mov ebx, dword [esp + 0x2a0]
push ebp
push esi
push edi
mov eax, dword [ebx + 4]
xor edi, edi
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x58], eax
push 0x38
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
lea esi, [eax + eax*2]
mov dword [esp + 0x2c], ebp
shl esi, 4
lea eax, [esp + 0x70]
add esi, ecx
push eax
mov dword [esp + 0x28], esi
call sub.MSVCRT.dll_memset
movzx eax, byte [ebp + 0x10]
add esp, 0xc
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
shl ecx, 4
mov eax, dword [eax + 4]
add eax, 8
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [eax + 0x30]
mov dword [esp + 0x64], eax
cmp ecx, esi
jae 0x687a2b
mov bx, word [esp + 0x68]
mov edx, 0x200
mov esi, dword [esp + 0x2b4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
nop
test edi, edi
jne 0x687a2b
test word [ecx + 0xc], dx
je 0x687a1c
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x198]
mov eax, dword [edx + 0x19c]
and ecx, dword [ebp + 8]
and eax, dword [ebp + 0xc]
or ecx, eax
je 0x687a0f
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x2ac]
mov dword [esp + 0x38], 1
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [edx + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], edi
mov ebp, dword [edx + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x687977
lea esp, [esp]
mov ecx, 0x400
test word [ebp + 0xc], cx
je 0x687680
mov eax, dword [ebp + 0x1c]
jmp 0x6876c2
mov ecx, dword [esp + 0x64]
cmp dword [ebp + 0x14], ecx
jne 0x68795b
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
mov dword [esp + 0x110], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x114], ecx
mov byte [esp + 0x118], 0x2c
mov dword [esp + 0x11c], 1
mov dword [esp + 0x124], ebp
mov dword [esp + 0x40], eax
xor eax, eax
mov word [esp + 0xa0], ax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x38], 0
lea eax, [esp + 0x3c]
je 0x687708
push dword [esp + 0x2bc]
push dword [esp + 0x2bc]
push esi
push dword [esp + 0x2bc]
push eax
call fcn.00687a50
mov edi, eax
add esp, 0x14
mov dword [esp + 0x14], edi
jmp 0x68771f
push esi
push dword [esp + 0x2b4]
push eax
call fcn.006868f0
add esp, 0xc
mov dword [esp + 0x14], eax
mov edi, eax
test edi, edi
jne 0x68774a
push dword [esp + 0x2bc]
lea eax, [esp + 0x40]
push dword [esp + 0x2bc]
push esi
push dword [esp + 0x2bc]
push eax
call fcn.00687540
add esp, 0x14
mov dword [esp + 0x14], eax
mov si, word [esp + 0xa0]
test si, si
je 0x68796c
cmp dword [esp + 0x38], 0
je 0x687790
movzx eax, si
shl eax, 4
push eax
lea eax, [esp + 0xac]
mov word [esp + 0x6c], si
push eax
lea eax, [esp + 0x78]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [esp + 0x38], 0
jmp 0x687947
movzx eax, bx
shl eax, 4
push eax
lea eax, [esp + 0x74]
mov word [esp + 0xdc], bx
push eax
lea eax, [esp + 0xe8]
push eax
call sub.MSVCRT.dll_memcpy
movzx ecx, word [esp + 0xe4]
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x10], ebx
mov word [esp + 0x68], bx
mov dword [esp + 0x2c], ecx
test ecx, ecx
jle 0x687950
lea edx, [esp + 0xe8]
movzx eax, si
mov dword [esp + 0x30], edx
jmp 0x6877f0
mov dword [esp + 0x34], 0
test eax, eax
jle 0x687931
mov ebx, dword [edx - 8]
lea edi, [esp + 0xb0]
movzx eax, word [edx + 2]
movzx ebp, word [edx]
mov edx, dword [edx - 4]
mov dword [esp + 0x60], ebx
mov ebx, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x10], edi
movzx eax, word [edi + 2]
movsx edx, ax
cmp bx, ax
jl 0x68785c
movsx ecx, bx
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x68783c
mov edi, ebx
jmp 0x687886
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x68784b
lea eax, [ebx + 1]
movzx edi, ax
jmp 0x687886
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bx
movzx edi, ax
jmp 0x687886
movsx esi, bx
lea ecx, [esi + 0x31]
cmp edx, ecx
jle 0x68786a
mov edi, eax
jmp 0x687886
lea ecx, [esi + 0x1f]
cmp edx, ecx
jle 0x687877
inc eax
movzx edi, ax
jmp 0x687886
sub edx, esi
movzx ecx, byte [edx + str._n_n_t_t_b_b_a_a_a]
add cx, ax
movzx edi, cx
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
movsx edx, cx
cmp bp, cx
jl 0x6878bd
movsx ecx, bp
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x6878a3
mov eax, ebp
jmp 0x6878e6
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x6878af
lea eax, [ebp + 1]
jmp 0x6878e3
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bp
jmp 0x6878e3
movsx esi, bp
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x6878cb
mov eax, ecx
jmp 0x6878e6
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x6878d7
lea eax, [ecx + 1]
jmp 0x6878e3
sub edx, esi
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
push edi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [edi - 4]
or eax, dword [esp + 0x64]
mov ecx, dword [edi - 8]
or ecx, dword [esp + 0x68]
push eax
push ecx
lea eax, [esp + 0x78]
push eax
call fcn.00688930
mov edx, dword [esp + 0x48]
add edi, 0x10
movzx eax, word [esp + 0xb4]
inc edx
add esp, 0x14
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], edi
cmp edx, eax
jl 0x687822
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add edx, 0x10
dec ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
jne 0x6877f0
mov ebp, dword [esp + 0x28]
mov bx, word [esp + 0x68]
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x2b4]
mov eax, dword [esp + 0x20]
add ebp, 0x30
mov dword [esp + 0x28], ebp
cmp ebp, eax
jb 0x687670
jmp 0x687977
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov word [esp + 0x68], bx
mov ebp, dword [esp + 0x24]
mov eax, 1
mov ecx, dword [esp + 0x18]
xor edi, edi
mov word [ebp + 0x28], ax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
xor eax, eax
mov dword [ebp + 0x24], 0x2000
mov word [ebp + 0x12], ax
mov byte [ebp + 0x11], al
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
cmp dword [esp + 0x14], eax
jne 0x687a38
movzx ebp, bx
lea esi, [esp + 0x7a]
mov ebx, dword [esp + 0x24]
lea ecx, [ecx]
cmp edi, ebp
jge 0x6879fc
movzx eax, word [esi - 2]
inc ax
mov word [ebx + 0x14], ax
movzx eax, word [esi]
mov word [ebx + 0x16], ax
mov eax, dword [esi - 0xa]
push ebx
push dword [esp + 0x2b0]
mov dword [ebx], eax
mov eax, dword [esi - 6]
mov dword [ebx + 4], eax
call fcn.00688500
add esp, 8
mov dword [esp + 0x14], eax
inc edi
add esi, 0x10
test eax, eax
je 0x6879c0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x2b4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, 0x200
add ecx, 0x30
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x6875d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x2b4]
jmp 0x687a13