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

Disassembly:
push 0xffffffffffffffff
push 0x5e8ebc
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 eax, dword [esp + 0x164]
mov edi, dword [esp + 0x15c]
mov ebp, dword [esp + 0x168]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x58218e
mov edx, dword [esp + 0x160]
mov ecx, dword [eax]
or edx, 0x40
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jns 0x581cf4
xor eax, eax
jmp 0x582193
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push eax
call edx
mov dword [esp + 0x20], eax
cmp eax, ebx
jge 0x581d1c
cmp eax, 0x800704c7
jne 0x581db7
mov eax, 0x13ed
jmp 0x582193
test dword [esp + 0x160], 0x200
je 0x581da7
mov dword [esp + 0x1c], ebx
mov esi, dword [esi]
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x647aa4
push esi
mov dword [esp + 0x160], ebx
call edx
mov dword [esp + 0x20], eax
cmp eax, ebx
jl 0x581d8a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00581920
add esp, 8
test al, al
je 0x581d8a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x154], 0xffffffff
cmp eax, ebx
je 0x581d80
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0x13ec
jmp 0x582193
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x154], 0xffffffff
cmp eax, ebx
je 0x581db7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x581db7
mov esi, dword [esi]
push ebp
push esi
call fcn.00581ba0
add esp, 8
test al, al
jne 0x581d80
xor al, al
lea esp, [esp]
cmp al, bl
jne 0x581e22
lea eax, [esp + 0x124]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
mov edi, 1
or dword [esp + 0x18], edi
mov dword [esp + 0x154], edi
cmp dword [0x695aa8], ebx
je 0x581e07
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x581e07
call fcn.004443b0
jmp 0x581e0c
mov al, byte [0x68a580]
cmp al, bl
je 0x581e22
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, edi
jae 0x581e26
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x154], 0xffffffff
je 0x581e6d
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 0x581e72
mov edx, dword [esp + 0x124]
push edx
call fcn.00584768
add esp, 4
jmp 0x581e72
mov ebp, 8
cmp byte [esp + 0x17], bl
je 0x581d12
push str.Couldnt_obtain_folder_name
lea ecx, [esp + 0xe0]
call fcn.00402bb0
mov edi, 7
xor eax, eax
mov dword [esp + 0x154], 2
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
xor ecx, ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x154], 4
call fcn.00425e70
cmp eax, ebx
je 0x581efc
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0xe4]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x581f0c
lea eax, [esp + 0xdc]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x28], eax
mov byte [esp + 0x154], 5
call fcn.00420510
mov dword [esp + 0x2c], eax
mov byte [esp + 0x154], 6
call fcn.00420510
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
push str.wx.sys_error
lea ecx, [esp + 0x104]
mov byte [esp + 0x158], 7
call fcn.00402bb0
mov byte [esp + 0x154], 8
mov dword [esp + 0x84], 1
mov dword [esp + 0x8c], str....._srcmswdirdlg.cpp
mov dword [esp + 0x94], str.wxMSWImpl::wxIFileDialog::Show
mov dword [esp + 0x90], 0x154
mov dword [esp + 0x98], 0x5fcf00
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0x154], 9
call sub.KERNEL32.dll_GetLastError
push eax
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x8c]
call fcn.00429810
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041de00
push eax
push esi
call fcn.0040b680
mov ecx, dword [esp + 0xdc]
push ecx
mov byte [esp + 0x164], 8
call fcn.005844d1
add esp, 0x10
cmp dword [esp + 0xc8], ebp
jb 0x582058
mov edx, dword [esp + 0xb4]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xb0]
xor eax, eax
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], ax
mov esi, ecx
cmp ecx, ebx
je 0x58208b
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x114], ebp
jb 0x5820b4
mov edx, dword [esp + 0x100]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], ax
mov byte [esp + 0x154], 4
call fcn.004020c0
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x74], ebp
jb 0x5820fd
mov edx, dword [esp + 0x60]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x58]
xor eax, eax
push ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x58212c
mov edx, dword [esp + 0x3c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xf8]
xor eax, eax
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov dword [esp + 0x158], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf0], ebp
jb 0x58216f
mov edx, dword [esp + 0xdc]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
mov word [esp + 0xdc], ax
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
mov al, 1
jmp 0x581dc0
mov eax, 0xfffffffd
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 0x10