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

Disassembly:
push 0xffffffffffffffff
push 0x5ccfc2
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x160]
mov eax, dword [esp + 0x15c]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
cmp esi, ebx
je 0x46b5af
cmp eax, ebx
je 0x46b5af
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x46b5af
push ecx
push esi
mov edi, 1
push edi
push eax
call fcn.0058c155
add esp, 0x10
mov dword [esp + 0x20], eax
cmp eax, esi
jae 0x46b5b1
xor al, al
lea esp, [esp]
cmp al, bl
jne 0x46b25d
lea eax, [esp + 0x124]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], edi
mov dword [esp + 0x154], ebx
cmp dword [0x695aa8], ebx
je 0x46b242
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x46b242
call fcn.004443b0
jmp 0x46b247
mov al, byte [0x68a580]
cmp al, bl
je 0x46b25d
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, edi
jae 0x46b261
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x154], 0xffffffff
je 0x46b2a8
mov ecx, dword [esp + 0x140]
and dword [esp + 0x18], 0xfffffffe
push ecx
call fcn.005844d1
mov ebp, 8
add esp, 4
cmp dword [esp + 0x138], ebp
jb 0x46b2ad
mov edx, dword [esp + 0x124]
push edx
call fcn.00584768
add esp, 4
jmp 0x46b2ad
mov ebp, 8
cmp byte [esp + 0x17], bl
je 0x46b5a9
push str.Write_error_on_file__s
lea ecx, [esp + 0x88]
call fcn.00402bb0
mov dword [esp + 0x154], edi
mov edi, 7
xor eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ecx, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x154], 3
call fcn.00425e70
cmp eax, ebx
je 0x46b330
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x8c]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x46b340
lea eax, [esp + 0x84]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x154], 4
call fcn.00420510
mov dword [esp + 0x28], eax
mov byte [esp + 0x154], 5
call fcn.00420510
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
push str.wx.sys_error
lea ecx, [esp + 0xac]
mov byte [esp + 0x158], 6
call fcn.00402bb0
mov edx, dword [esp + 0x1c]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0xa4], esp
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
add edx, 4
mov word [esi], cx
push edx
mov ecx, esi
mov byte [esp + 0x184], 7
call fcn.00402610
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esp + 0x178], 8
mov dword [esp + 0xf0], 1
mov dword [esp + 0xf8], str....._srccommon_ffile.cpp
mov dword [esp + 0x100], str.wxFFile::Write
mov dword [esp + 0xfc], 0x95
mov dword [esp + 0x104], 0x5fcf00
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x118], eax
xor eax, eax
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], ax
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov byte [esp + 0x178], 9
lea ecx, [esp + 0x48]
push ecx
call sub.KERNEL32.dll_GetLastError
push eax
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0xfc]
call fcn.00429810
mov ecx, eax
mov byte [esp + 0x17c], 0xa
call fcn.00428340
lea ecx, [esp + 0xcc]
mov byte [esp + 0x154], 7
call fcn.0040e140
mov eax, dword [esp + 0xc4]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xbc], ebp
jb 0x46b4cc
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], dx
mov byte [esp + 0x154], 3
call fcn.004020c0
mov eax, dword [esp + 0x54]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x46b515
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x78]
xor edx, edx
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x70], ebp
jb 0x46b544
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0xa0]
xor edx, edx
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x158], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x98], ebp
jb 0x46b587
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
mov al, 1
lea edi, [edx + 1]
jmp 0x46b200
mov eax, dword [esp + 0x20]
jmp 0x46b5b1
xor eax, eax
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00585b7b
add esp, 0x144
ret 8