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

Disassembly:
push 0xffffffffffffffff
push 0x5c7a35
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x23c]
mov esi, dword [esp + 0x240]
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x244], bl
jne 0x437d0a
push esi
call fcn.0042dd20
add esp, 4
test al, al
je 0x437d0a
xor al, al
cmp al, bl
jne 0x437916
lea eax, [esp + 0xe8]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 1
mov dword [esp + 0x234], ebx
cmp dword [0x695aa8], ebx
je 0x4378fa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x4378fa
call fcn.004443b0
jmp 0x4378ff
mov al, byte [0x68a580]
cmp al, bl
je 0x437916
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x43791a
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x234], 0xffffffff
je 0x437961
mov ecx, dword [esp + 0x104]
and dword [esp + 0x18], 0xfffffffe
push ecx
call fcn.005844d1
mov ebp, 8
add esp, 4
cmp dword [esp + 0xfc], ebp
jb 0x437966
mov edx, dword [esp + 0xe8]
push edx
call fcn.00584768
add esp, 4
jmp 0x437966
mov ebp, 8
cmp byte [esp + 0x17], bl
je 0x4381c3
push str.Failed_to_rename_the_file__s_to__s_because_the_destination_file_already_exists.
lea ecx, [esp + 0xec]
call fcn.00402bb0
mov edi, 7
xor eax, eax
mov dword [esp + 0x234], 1
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], ax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
xor ecx, ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], cx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x234], 3
call fcn.00425e70
cmp eax, ebx
je 0x4379ff
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0xf0]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x437a0f
lea eax, [esp + 0xe8]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x2c], eax
mov byte [esp + 0x234], 4
call fcn.00420510
mov dword [esp + 0x30], eax
mov byte [esp + 0x234], 5
call fcn.00420510
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
push str.wx.sys_error
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x238], 6
call fcn.00402bb0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0xf0], esp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00406280
mov ecx, dword [esp + 0x28]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00406280
mov byte [esp + 0x24c], 9
mov dword [esp + 0x124], 1
mov dword [esp + 0x12c], str....._srccommon_filefn.cpp
mov dword [esp + 0x134], str.wxRenameFile
mov dword [esp + 0x130], 0x3f2
mov dword [esp + 0x138], 0x5fcf00
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x14c], eax
xor eax, eax
mov dword [esp + 0x150], ebx
mov dword [esp + 0x168], edi
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], ax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], ebx
mov byte [esp + 0x24c], 0xa
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1dc]
push ecx
lea ecx, [esp + 0x160]
mov esi, eax
call fcn.00402610
mov ecx, dword [esp + 0x150]
cmp ecx, ebx
jne 0x437b81
push 0x20
call fcn.00584773
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x24c], 0xb
cmp eax, ebx
je 0x437b6e
mov ecx, eax
call fcn.004287b0
jmp 0x437b70
xor eax, eax
mov ecx, eax
mov byte [esp + 0x24c], 0xa
mov dword [esp + 0x150], ecx
lea edx, [esp + 0x1d4]
push edx
call fcn.004775a0
mov dword [eax], esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x250], 0xc
call fcn.00435570
mov ecx, dword [esp + 0x158]
push ecx
mov byte [esp + 0x238], 7
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x150], ebp
jb 0x437bda
mov edx, dword [esp + 0x13c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x138]
xor eax, eax
mov dword [esp + 0x150], edi
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], ax
mov esi, ecx
cmp ecx, ebx
je 0x437c0d
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1d0], ebp
jb 0x437c36
mov edx, dword [esp + 0x1bc]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1d0], edi
mov dword [esp + 0x1cc], ebx
mov word [esp + 0x1bc], ax
mov byte [esp + 0x234], 3
call fcn.004020c0
mov ecx, dword [esp + 0x70]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x68], ebp
jb 0x437c7f
mov edx, dword [esp + 0x54]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xb8]
xor eax, eax
push ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xb0], ebp
jb 0x437cb7
mov edx, dword [esp + 0x9c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x104]
xor eax, eax
push ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], ax
mov dword [esp + 0x238], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xfc], ebp
jb 0x437d03
mov edx, dword [esp + 0xe8]
push edx
call fcn.00584768
add esp, 4
mov al, 1
jmp 0x4378b7
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x437d18
mov ecx, dword [esi]
jmp 0x437d1a
mov ecx, esi
cmp dword [ebp + 0x14], edi
jb 0x437d24
mov eax, dword [ebp]
jmp 0x437d26
mov eax, ebp
push ecx
push eax
call fcn.005878e7
add esp, 8
test eax, eax
je 0x437d53
mov eax, dword [esp + 0x244]
push eax
push esi
push ebp
call fcn.004372b0
add esp, 0xc
test al, al
je 0x437d5a
push ebp
call fcn.00435990
add esp, 4
mov al, 1
jmp 0x4381c5
xor al, al
mov ebp, 0x405
cmp al, bl
jne 0x437dc4
lea ecx, [esp + 0xe8]
push 0x5fcf00
push ecx
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 2
mov dword [esp + 0x234], 0xd
cmp dword [0x695aa8], ebx
je 0x437da8
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x437da8
call fcn.004443b0
jmp 0x437dad
mov al, byte [0x68a580]
cmp al, bl
je 0x437dc4
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x437dc8
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 2
mov dword [esp + 0x234], 0xffffffff
je 0x437e08
mov edx, dword [esp + 0x104]
and dword [esp + 0x18], 0xfffffffd
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xfc], edi
jb 0x437e08
mov eax, dword [esp + 0xe8]
push eax
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4381c3
push str.File__s_couldnt_be_renamed__s
lea ecx, [esp + 0x1e4]
call fcn.00402bb0
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x234], 0xe
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
xor edx, edx
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], dx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov byte [esp + 0x234], 0x10
call fcn.00425e70
cmp eax, ebx
je 0x437ead
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x437ebd
lea edx, [esp + 0x1e0]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x40], eax
mov byte [esp + 0x234], 0x11
call fcn.00420510
mov dword [esp + 0x44], eax
mov byte [esp + 0x234], 0x12
call fcn.00420510
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
push str.wx.sys_error
lea ecx, [esp + 0x208]
mov byte [esp + 0x238], 0x13
call fcn.00402bb0
mov ecx, dword [esp + 0x20]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
xor eax, eax
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esp + 0x264], 0x14
mov word [esi], ax
call fcn.00402610
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov eax, dword [esp + 0x40]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x70], esp
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esp + 0x288], 0x15
mov word [esi], dx
call fcn.00402610
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esp + 0x27c], 0x16
mov dword [esp + 0x1ac], 1
mov dword [esp + 0x1b4], str....._srccommon_filefn.cpp
mov dword [esp + 0x1bc], str.wxRenameFile
mov dword [esp + 0x1b8], ebp
mov dword [esp + 0x1c0], 0x5fcf00
mov dword [esp + 0x1c4], ebx
mov dword [esp + 0x1c8], ebx
mov dword [esp + 0x1cc], ebx
mov dword [esp + 0x1d0], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
mov dword [esp + 0x1d4], eax
mov dword [esp + 0x1d8], ebx
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1ec], ebx
mov word [esp + 0x1dc], cx
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1fc], ebx
mov byte [esp + 0x27c], 0x17
lea edx, [esp + 0x88]
push edx
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x1b8]
call fcn.00429810
mov ecx, eax
mov byte [esp + 0x280], 0x18
call fcn.00428490
mov ecx, dword [esp + 0x1b0]
push ecx
mov byte [esp + 0x238], 0x14
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1a8], 8
jb 0x438068
mov edx, dword [esp + 0x194]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x190]
xor eax, eax
mov dword [esp + 0x1a8], edi
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], ax
mov esi, ecx
cmp ecx, ebx
je 0x43809b
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x220]
push ecx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x218], esi
jb 0x4380c9
mov edx, dword [esp + 0x204]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x218], edi
mov dword [esp + 0x214], ebx
mov word [esp + 0x204], ax
mov byte [esp + 0x234], 0x10
call fcn.004020c0
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xd4], esi
jb 0x43811b
mov edx, dword [esp + 0xc0]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x94]
xor eax, eax
push ecx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x8c], esi
jb 0x438159
mov edx, dword [esp + 0x78]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x1fc]
xor eax, eax
push ecx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
mov dword [esp + 0x238], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1f4], esi
jb 0x4381a2
mov edx, dword [esp + 0x1e0]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
mov dword [esp + 0x1f4], edi
mov word [esp + 0x1e0], ax
mov dword [esp + 0x1f0], ebx
mov al, 1
mov edi, esi
jmp 0x437d61
xor al, al
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00585b7b
add esp, 0x224
ret