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

Disassembly:
push 0xffffffffffffffff
push 0x5a1852
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov edi, dword [0x5fe634]
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 0x46d374
call fcn.004129d0
cmp eax, ebp
jge 0x46d37a
xor eax, eax
jmp 0x46d3e6
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 0x46d3a1
call fcn.004129d0
push ebp
lea edx, [esp + 0x38]
push edx
push 0x2e
push 0x5c1ee8
push ebx
call esi
cmp eax, ebp
jne 0x46d3ba
call fcn.004129d0
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 0x46d414
cmp ebx, ebp
je 0x46d3e1
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.005787fd
add esp, 0x294
ret
mov edi, dword [esp + 0x20]
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
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.00580260
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 0x46d500
sub eax, ecx
sar eax, 1
mov edi, eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax]
push 2
push edi
mov ecx, 0x5fcd20
call edx
cmp eax, ebp
je 0x46dd0c
cmp edi, ebp
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x46dd11
cmp edi, dword [esi - 8]
jg 0x46dd11
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.00578353
add esp, 0x10
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
mov byte [esp + 0x2a4], 2
je 0x46d5b6
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x46d5a9
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x46d5a9
mov eax, edi
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x46d5a0
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 0x46d5b6
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x28]
call fcn.00404050
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d5d7
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 0x46d5e1
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 0x46d655
sub eax, edx
push 0xa
lea ecx, [esp + 0x20]
sar eax, 1
push ecx
push eax
call fcn.0057ae74
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 0x46d680
sub eax, edx
mov edx, dword [0x5fcd20]
sar eax, 1
mov edi, eax
mov eax, dword [edx]
push 2
push edi
mov ecx, 0x5fcd20
call eax
test eax, eax
je 0x46dd0c
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x46dd11
cmp edi, dword [esi - 8]
jg 0x46dd11
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.00578353
add esp, 0x10
mov byte [esp + 0x2a4], 3
mov ebx, dword [esp + 0x28]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x46d73a
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x46d72d
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x46d72d
mov eax, edi
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x46d724
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 0x46d73a
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x2c]
call fcn.00404050
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d75b
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 0x46d765
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 0x46d780
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.0057a8a1
lea eax, [esp + 0x98]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d7b6
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 0x46d7d1
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.0057a8a1
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 0x46d860
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46d860
sub eax, ecx
push 0xa
lea edx, [esp + 0x20]
sar eax, 1
push edx
push eax
call fcn.0057ae74
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 0x46d890
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax]
push 2
push edi
mov ecx, 0x5fcd20
call edx
test eax, eax
je 0x46dd0c
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x46dd11
cmp edi, dword [esi - 8]
jg 0x46dd11
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.00578353
add esp, 0x10
mov byte [esp + 0x2a4], 4
mov ebx, dword [esp + 0x2c]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x46d949
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x46d93c
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x46d93c
mov eax, edi
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x46d933
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 0x46d949
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x30]
call fcn.00404050
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d96a
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 0x46d974
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 0x46d990
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.0057a8a1
lea eax, [esp + 0x98]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d9c6
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 0x46d9e1
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.0057a8a1
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 0x46da70
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46da70
sub eax, ecx
push 0xa
lea edx, [esp + 0x20]
sar eax, 1
push edx
push eax
call fcn.0057ae74
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 0x46daa0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax]
push 2
push edi
mov ecx, 0x5fcd20
call edx
test eax, eax
je 0x46dd0c
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x46dd11
cmp edi, dword [esi - 8]
jg 0x46dd11
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.00578353
add esp, 0x10
mov byte [esp + 0x2a4], 5
mov ebx, dword [esp + 0x30]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x46db59
cmp dword [ebx + 0xc], 0
lea ebp, [ebx + 0xc]
jl 0x46db4c
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x46db4c
mov eax, edi
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x46db43
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 0x46db59
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x34]
call fcn.00404050
mov byte [esp + 0x2a4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db7a
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 0x46db86
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 0x46dba1
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.0057a8a1
lea eax, [esp + 0x98]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x46dbd7
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 0x46dbf2
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.0057a8a1
add esp, 0xc
cmp dword [0x5fe648], ebp
jne 0x46dc87
lea esi, [esp + 0x24]
lea edi, [esp + 0x68]
call fcn.0046e710
mov esi, dword [esp + 0x68]
cmp esi, ebp
mov ebx, dword [0x602cb0]
je 0x46dc4d
cmp esi, 0x602cac
je 0x46dc52
call fcn.00578ff3
mov edi, dword [esp + 0x6c]
cmp edi, ebx
je 0x46dc7d
cmp esi, ebp
jne 0x46dc63
call fcn.00578ff3
cmp edi, dword [esi + 4]
jne 0x46dc6d
call fcn.00578ff3
lea eax, [edi + 0x10]
lea esi, [esp + 0x24]
call fcn.0046cad0
test eax, eax
jne 0x46dc87
mov dword [0x5fe648], 1
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x46dc91
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 0x46dcc8
call fcn.004129d0
push ebp
lea ecx, [esp + 0x78]
push ecx
push 4
push 0x5bdf38
push ebx
call esi
cmp eax, ebp
jne 0x46dce1
call fcn.004129d0
lea esi, [esp + 0x24]
mov byte [esp + 0x2a4], 0
call fcn.0046dd80
mov esi, dword [esp + 0x18]
add esi, 1
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x18], esi
jl 0x46d410
jmp 0x46d3d6
jmp fcn.00408870
push 0x80070057
call fcn.00404550
int3