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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x689231
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
call fcn.005b1d88
xor eax, eax
push ebp
push 0x404ebe
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.006891dc
mov ebx, dword [ebp - 0xc]
shl ebx, 2
lea ebx, [ebx + ebx*2]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ebx*8 + 0x58]
push eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov ecx, 4
call fcn.0067f590
mov eax, dword [ebp + 8]
add dword [eax], 4
adc dword [eax + 4], 0
mov eax, dword [ebp - 0x1c]
call fcn.005af514
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.006891dc
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x60]
mov edx, dword [edx + ebx*8 + 0x58]
push edx
mov eax, esi
mov edx, eax
mov ecx, dword [ebp - 0x1c]
call fcn.0067f590
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp + 8]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
add esi, 4
lea eax, [ebp - 0x40]
mov edx, esi
call fcn.005b18d8
mov eax, dword [ebp - 0x40]
call fcn.005b19e0
add eax, eax
add eax, 2
add esi, eax
mov al, byte [esi]
mov byte [ebp - 0x45], al
inc esi
cmp dword [ebp - 0x38], 1
jne 0x689342
cmp byte [ebp - 0x45], 3
jne 0x689342
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x45cc48]
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
call 0x691cb8
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
call fcn.005b17e0
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x40]
call fcn.005b17e0
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x40]
call fcn.005b65c4
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x40]
call fcn.005b17e0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 8]
cmp dword [ebp - 8], 0
je 0x689c10
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xbc]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x6893e3
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xbc]
mov edx, dword [ebp - 0x10]
call fcn.005ca294
mov al, byte [eax + 0x48]
cmp al, byte [ebp - 0x45]
jne 0x6893dd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xbc]
mov edx, dword [ebp - 0x10]
call fcn.005ca294
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x40]
call fcn.005b1af8
jne 0x6893dd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xbc]
mov edx, dword [ebp - 0x10]
call fcn.005ca294
mov ebx, eax
jmp 0x6893e3
inc dword [ebp - 0x10]
dec edi
jne 0x689391
test ebx, ebx
jne 0x689b60
mov eax, dword [ebp - 0xc]
shl eax, 2
lea eax, [eax + eax*2]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x60]
lea ecx, [edx + eax*8]
mov dl, 1
mov eax, dword [0x3fa414]
call fcn.0067f62c
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xbc]
mov edx, ebx
call fcn.005ca138
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x40]
call fcn.005b17bc
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0x44]
call fcn.005b17bc
mov al, byte [ebp - 0x45]
mov byte [ebx + 0x48], al
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.005b1af8
je 0x689468
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 0xc]
call fcn.005d93f0
mov edx, dword [ebp - 0x64]
lea eax, [ebp + 0xc]
call fcn.005b17e0
lea eax, [ebp - 0x6c]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.005b1a4c
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.005b65c4
mov edx, dword [ebp - 0x68]
lea eax, [ebx + 0x18]
call fcn.005b17bc
lea edx, [ebp - 0x70]
mov eax, dword [ebx + 0x18]
call 0x690a60
mov ecx, dword [ebp - 0x70]
mov dl, 1
mov eax, dword [0x40babc]
call 0x690fac
mov dword [ebx + 0x40], eax
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x18]
call 0x690c8c
mov ecx, dword [ebp - 0x74]
mov dl, 1
mov eax, dword [0x40babc]
call 0x690fac
mov dword [ebx + 0x44], eax
mov al, byte [ebx + 0x48]
cmp al, 2
jne 0x68955d
push 0x404ed8
mov eax, 0x100000
call fcn.005afb28
lea ecx, [ebp - 0x80]
mov edx, 5
call fcn.005b6ca8
push dword [ebp - 0x80]
push 0x404ee4
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.005b13f4
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.005b1954
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x24]
call fcn.005b65c4
lea edx, [ebp - 0x88]
mov eax, dword [ebx + 0x18]
call fcn.005d94e4
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.005d93f0
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x24]
call fcn.005b19ec
mov eax, dword [ebp - 0x84]
call fcn.005d96e0
test al, al
jne 0x6894d1
jmp 0x68967b
sub al, 1
je 0x689569
sub al, 2
jne 0x68967b
call fcn.005b9758
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x4c], 0x10
mov eax, 0x100000
call fcn.005afb28
lea ecx, [ebp - 0x9c]
mov edx, 5
call fcn.005b6ca8
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 0x404ed8
call fcn.005b1380
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
call fcn.005b1954
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x24]
call fcn.005b65c4
lea edx, [ebp - 0xa8]
mov eax, dword [ebx + 0x18]
call fcn.005d9440
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.005d94e4
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.005d93f0
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x24]
call fcn.005b19ec
mov eax, dword [ebp - 0xa0]
call fcn.005d96cc
test al, al
jne 0x6895bd
mov eax, dword [ebp - 0x24]
call fcn.005b19e0
add eax, eax
push eax
mov eax, dword [ebp - 0x24]
call fcn.005b19d0
mov edx, eax
lea eax, [ebx + 0x1c]
pop ecx
call fcn.005b47c0
mov al, byte [ebx + 0x48]
dec eax
sub al, 3
jae 0x689919
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.005b1af8
je 0x689919
mov byte [ebp - 0x46], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
call fcn.005b25e0
mov edi, eax
dec edi
test edi, edi
jl 0x689825
inc edi
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8]
lea edx, [ebp - 0xac]
call fcn.005b65c4
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
call fcn.005b1af8
jne 0x68981b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x24]
call fcn.005d93f0
mov eax, dword [ebx + 0x40]
call 0x690f0c
dec eax
test eax, eax
jl 0x68976c
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xb8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x40]
call 0x690eec
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x24]
call fcn.005b1a4c
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.005d93f0
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0x24]
call fcn.005b17e0
inc dword [ebp - 0x18]
dec dword [ebp - 0x58]
jne 0x689720
lea eax, [ebx + 0x34]
mov edx, dword [ebp - 0x24]
call fcn.005b17bc
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x40babc]
call 0x690fac
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x24]
call fcn.005d93f0
mov eax, dword [ebx + 0x44]
call 0x690f0c
dec eax
test eax, eax
jl 0x689805
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x44]
call 0x690eec
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0x24]
call fcn.005b1a4c
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.005d93f0
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0x24]
call fcn.005b17e0
inc dword [ebp - 0x18]
dec dword [ebp - 0x58]
jne 0x6897b9
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x40babc]
call 0x690fac
mov dword [ebx + 0x3c], eax
mov byte [ebp - 0x46], 1
inc dword [ebp - 0x14]
dec edi
jne 0x6896bf
cmp byte [ebp - 0x46], 0
jne 0x689919
push 0
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
call fcn.005b19d0
push eax
call fcn.0060106c
movzx ecx, word [ebp - 0x54]
shr ecx, 1
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x50]
call fcn.005b1874
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x24]
call fcn.005b65c4
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.005d93f0
mov edx, dword [ebp - 0xc8]
lea eax, [ebp - 0x24]
call fcn.005b17e0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
call fcn.005b25e0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
add eax, 0x58
mov ecx, 1
mov edx, dword [0x3fa5e0]
call fcn.005b279c
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*8]
mov edx, dword [ebx + 0x40]
mov edx, dword [edx + 8]
call fcn.005b17bc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*8 + 4]
mov edx, dword [ebp - 0x24]
call fcn.005b17bc
lea eax, [ebx + 0x34]
mov edx, dword [ebp - 0x24]
call fcn.005b17bc
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x40babc]
call 0x690fac
mov dword [ebx + 0x38], eax
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x40babc]
call 0x690fac
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xb8], eax
mov al, byte [ebx + 0x48]
mov edx, eax
sub dl, 3
jne 0x6899f3
mov eax, dword [ebp - 0xc]
shl eax, 2
lea eax, [eax + eax*2]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x60]
mov eax, dword [edx + eax*8 + 0x2c]
mov edx, dword [0x45c79c]
cmp eax, dword [edx]
je 0x689c10
mov edx, dword [ebp + 0x10]
mov edx, dword [0x45cbbc]
cmp eax, dword [edx]
jne 0x689c10
mov al, byte [esi]
mov byte [ebx + 0x50], al
inc esi
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x64], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x7c], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x74], eax
add esi, 8
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi]
add dword [ebx + 0x4c], eax
add esi, 4
jmp 0x689c10
sub al, 2
jne 0x689c10
mov al, byte [esi]
inc esi
test al, 1
setne dl
mov byte [ebx + 0x51], dl
test al, 2
setne al
mov byte [ebx + 0x52], al
mov al, byte [esi]
mov byte [ebx + 0x50], al
inc esi
mov eax, dword [esi]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x5c], eax
add esi, 8
push dword [ebx + 0x5c]
push dword [ebx + 0x58]
push 0
push 0x1000
call fcn.0067f518
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], edx
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x64], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x7c], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0x90]
call fcn.006017e8
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x74], eax
add esi, 8
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi]
mov dword [ebx + 0x4c], eax
add esi, 4
mov al, byte [esi]
mov byte [ebx + 0x80], al
inc esi
lea eax, [ebx + 0x84]
mov edx, esi
call fcn.005b18d8
mov eax, dword [ebx + 0x84]
call fcn.005b19e0
add eax, eax
add eax, 2
add esi, eax
mov eax, dword [esi]
mov dword [ebx + 0xa8], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0xac], eax
add esi, 8
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebx + 0xa0], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xb4], 0xffffffff
mov ecx, dword [ebx + 0xa8]
mov eax, dword [ebx + 0xac]
xor edx, edx
mov dword [ebp - 0x4c], eax
push 1
lea eax, [ebp - 0x4c]
push eax
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.005b3dcc
mov eax, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xac]
mov ecx, dword [ebp + 8]
add dword [ecx], eax
adc dword [ecx + 4], edx
jmp 0x689c10
mov al, byte [ebx + 0x48]
mov edx, eax
sub dl, 3
jne 0x689baa
mov eax, dword [ebp - 0xc]
shl eax, 2
lea eax, [eax + eax*2]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x60]
mov eax, dword [edx + eax*8 + 0x2c]
mov edx, dword [0x45c79c]
cmp eax, dword [edx]
je 0x689c10
mov edx, dword [ebp + 0x10]
mov edx, dword [0x45cbbc]
cmp eax, dword [edx]
jne 0x689c10
inc esi
add esi, 8
add esi, 8
add esi, 8
add esi, 4
jmp 0x689c10
sub al, 2
jne 0x689c10
inc esi
inc esi
add esi, 8
add esi, 8
add esi, 8
add esi, 8
add esi, 4
inc esi
lea eax, [ebp - 0x24]
mov edx, esi
call fcn.005b18d8
mov eax, dword [ebp - 0x24]
call fcn.005b19e0
add eax, eax
add eax, 2
add esi, eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
add esi, 8
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x4c], eax
push 1
lea eax, [ebp - 0x4c]
push eax
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.005b3dcc
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [ebp - 0x20]
call fcn.005af534
mov edi, dword [ebp - 0x3c]
dec edi
test edi, edi
jl 0x689c3e
inc edi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00689228
pop ecx
dec edi
jne 0x689c21
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ec5
lea eax, [ebp - 0xcc]
mov edx, 0xc
call fcn.005b1798
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.005b1088
lea eax, [ebp - 0x94]
call fcn.005b1780
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.005b1798
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.005b1088
lea eax, [ebp - 0x78]
mov edx, 8
call fcn.005b1798
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005b1798
lea eax, [ebp - 0x24]
call fcn.005b1780
lea eax, [ebp + 0xc]
call fcn.005b1780
ret