Function at 0x4687c0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5fda52
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov edi, dword [0x678f84]
mov eax, dword [esp + 0x2ac]
xor ebx, ebx
mov dword [esp + 0x20], edi
xor ebp, ebp
mov dword [esp + 0x3c], ebx
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push eax
mov dword [esp + 0x2c0], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x468844
call fcn.0040f010
cmp eax, ebp
jge 0x46884a
xor eax, eax
jmp 0x4688b6
mov ebx, eax
mov dword [esp + 0x3c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x38]
push eax
push 2
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x2c], 0xfeff
call esi
cmp eax, ebp
jne 0x468871
call fcn.0040f010
push ebp
lea edx, [esp + 0x38]
push edx
push 0x2e
push 0x62970c
push ebx
call esi
cmp eax, ebp
jne 0x46888a
call fcn.0040f010
push ebp
push ebp
push 0x1004
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], esi
jg 0x4688e4
cmp ebx, ebp
je 0x4688b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.005d28b3
add esp, 0x294
ret
mov edi, dword [esp + 0x20]
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
push 0x206
lea eax, [esp + 0x92]
push ebp
mov byte [esp + 0x2ac], 1
push eax
mov word [esp + 0x98], bp
call fcn.005da970
add esp, 0xc
lea edx, [esp + 0x40]
push edx
xor eax, eax
push esi
push 0x1073
lea ecx, [esp + 0x98]
push edi
mov word [esp + 0x88], bp
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov word [esp + 0x9a], ax
mov word [esp + 0x2c], bp
mov word [esp + 0x2e], bp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x68], 9
mov dword [esp + 0x64], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x8c]
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x4689d0
sub eax, ecx
sar eax, 1
mov edi, eax
mov eax, dword [0x677600]
mov edx, dword [eax]
push 2
push edi
mov ecx, 0x677600
call edx
cmp eax, ebp
je 0x4691dc
cmp edi, ebp
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x4691e1
cmp edi, dword [esi - 8]
jg 0x4691e1
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x90]
push ecx
push eax
mov dword [esi - 0xc], edi
push esi
mov word [esi + eax], bp
call fcn.005d2a01
add esp, 0x10
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
mov byte [esp + 0x2a4], 2
je 0x468a86
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x468a79
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x468a79
mov eax, edi
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x468a70
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x24], esi
jmp 0x468a86
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x28]
call fcn.004037a0
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468aa7
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468ab1
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
mov word [esp + eax*2 + 0x8c], 0x3d
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x7c]
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
push 0x1073
push eax
mov dword [esp + 0x58], 1
mov dword [esp + 0x68], 9
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468b25
sub eax, edx
push 0xa
lea ecx, [esp + 0x20]
sar eax, 1
push ecx
push eax
call fcn.005d3762
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468b50
sub eax, edx
mov edx, dword [0x677600]
sar eax, 1
mov edi, eax
mov eax, dword [edx]
push 2
push edi
mov ecx, 0x677600
call eax
test eax, eax
je 0x4691dc
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x4691e1
cmp edi, dword [esi - 8]
jg 0x4691e1
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x7c]
push ecx
push eax
mov dword [esi - 0xc], edi
push esi
mov word [esi + eax], 0
call fcn.005d2a01
add esp, 0x10
mov byte [esp + 0x2a4], 3
mov ebx, dword [esp + 0x28]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x468c0a
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x468bfd
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x468bfd
mov eax, edi
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x468bf4
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x28], esi
jmp 0x468c0a
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x2c]
call fcn.004037a0
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468c2b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468c35
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x8c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468c50
sub eax, esi
mov ecx, 0x103
sub ecx, edx
push ecx
sar eax, 1
lea edx, [esp + 0x20]
push edx
lea eax, [esp + eax*2 + 0x94]
push eax
call fcn.005d31ba
lea eax, [esp + 0x98]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468c86
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x8c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468ca1
sub eax, esi
mov ecx, 0x103
sub ecx, edx
push ecx
sar eax, 1
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + eax*2 + 0x94]
push eax
call fcn.005d31ba
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x7c]
push eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x28]
push 0x1073
push ecx
mov dword [esp + 0x58], 2
mov dword [esp + 0x68], 9
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x78]
lea ecx, [eax + 2]
jmp 0x468d30
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x468d30
sub eax, ecx
push 0xa
lea edx, [esp + 0x20]
sar eax, 1
push edx
push eax
call fcn.005d3762
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468d60
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [0x677600]
mov edx, dword [eax]
push 2
push edi
mov ecx, 0x677600
call edx
test eax, eax
je 0x4691dc
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x4691e1
cmp edi, dword [esi - 8]
jg 0x4691e1
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x7c]
push ecx
push eax
mov dword [esi - 0xc], edi
push esi
mov word [eax + esi], 0
call fcn.005d2a01
add esp, 0x10
mov byte [esp + 0x2a4], 4
mov ebx, dword [esp + 0x2c]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x468e19
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x468e0c
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x468e0c
mov eax, edi
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x468e03
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x2c], esi
jmp 0x468e19
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x30]
call fcn.004037a0
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468e3a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468e44
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x8c]
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468e60
sub eax, esi
mov ecx, 0x103
sub ecx, edx
push ecx
sar eax, 1
lea edx, [esp + 0x20]
push edx
lea eax, [esp + eax*2 + 0x94]
push eax
call fcn.005d31ba
lea eax, [esp + 0x98]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468e96
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x8c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468eb1
sub eax, esi
mov ecx, 0x103
sub ecx, edx
push ecx
sar eax, 1
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + eax*2 + 0x94]
push eax
call fcn.005d31ba
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x7c]
push eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x28]
push 0x1073
push ecx
mov dword [esp + 0x58], 3
mov dword [esp + 0x68], 9
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x78]
lea ecx, [eax + 2]
jmp 0x468f40
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x468f40
sub eax, ecx
push 0xa
lea edx, [esp + 0x20]
sar eax, 1
push edx
push eax
call fcn.005d3762
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468f70
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [0x677600]
mov edx, dword [eax]
push 2
push edi
mov ecx, 0x677600
call edx
test eax, eax
je 0x4691dc
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x4691e1
cmp edi, dword [esi - 8]
jg 0x4691e1
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x7c]
push ecx
push eax
mov dword [esi - 0xc], edi
push esi
mov word [eax + esi], 0
call fcn.005d2a01
add esp, 0x10
mov byte [esp + 0x2a4], 5
mov ebx, dword [esp + 0x30]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x469029
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x46901c
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x46901c
mov eax, edi
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x469013
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x30], esi
jmp 0x469029
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x34]
call fcn.004037a0
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46904a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
xor ebp, ebp
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x469056
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x8c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x469071
sub eax, esi
mov ecx, 0x103
sub ecx, edx
push ecx
sar eax, 1
lea edx, [esp + 0x20]
push edx
lea eax, [esp + eax*2 + 0x94]
push eax
call fcn.005d31ba
lea eax, [esp + 0x98]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4690a7
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x8c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4690c2
sub eax, esi
mov ecx, 0x103
sub ecx, edx
push ecx
sar eax, 1
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + eax*2 + 0x94]
push eax
call fcn.005d31ba
add esp, 0xc
cmp dword [0x678f98], ebp
jne 0x469157
lea esi, [esp + 0x24]
lea edi, [esp + 0x68]
call fcn.00469be0
mov esi, dword [esp + 0x68]
cmp esi, ebp
mov ebx, dword [0x67eba8]
je 0x46911d
cmp esi, 0x67eba4
je 0x469122
call fcn.005d29f1
mov edi, dword [esp + 0x6c]
cmp edi, ebx
je 0x46914d
cmp esi, ebp
jne 0x469133
call fcn.005d29f1
cmp edi, dword [esi + 4]
jne 0x46913d
call fcn.005d29f1
lea eax, [edi + 0x10]
lea esi, [esp + 0x24]
call fcn.00467fa0
test eax, eax
jne 0x469157
mov dword [0x678f98], 1
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x469161
mov ebx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebp
sar eax, 1
lea ecx, [esp + 0x74]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x98]
push eax
push ebx
call esi
cmp eax, ebp
jne 0x469198
call fcn.0040f010
push ebp
lea ecx, [esp + 0x78]
push ecx
push 4
push 0x625fc4
push ebx
call esi
cmp eax, ebp
jne 0x4691b1
call fcn.0040f010
lea esi, [esp + 0x24]
mov byte [esp + 0x2a4], 0
call fcn.00469250
mov esi, dword [esp + 0x18]
add esi, 1
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x18], esi
jl 0x4688e0
jmp 0x4688a6
jmp fcn.00403610
push 0x80070057
call fcn.00403650
int3