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

Disassembly:
push 0xffffffffffffffff
push 0x5d1965
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe8]
mov edi, dword [esp + 0xe0]
mov ebp, dword [esp + 0xe4]
mov esi, ecx
mov ecx, dword [esp + 0xec]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x104]
mov dword [esp + 0x34], ecx
mov ecx, esi
call eax
mov ecx, dword [esi + 0x44]
push eax
push ecx
push 2
mov ecx, esi
call fcn.004988a0
cmp eax, ebx
je 0x497ded
mov eax, dword [eax + 0x138]
jmp 0x497def
xor eax, eax
push ebx
push 0x496420
push eax
push edi
call fcn.0046fe30
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [esi + 0x138], eax
cmp eax, ebx
jne 0x498153
xor al, al
cmp al, bl
jne 0x497e74
lea ecx, [esp + 0x50]
push 0x5fcf00
push ecx
call fcn.00423280
add esp, 8
mov esi, eax
mov edi, 1
or dword [esp + 0x18], edi
mov dword [esp + 0xd8], ebx
cmp dword [0x695aa8], ebx
je 0x497e57
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x497e57
call fcn.004443b0
jmp 0x497e5c
mov al, byte [0x68a580]
cmp al, bl
je 0x497e79
push esi
call fcn.00445fa0
add esp, 4
cmp eax, edi
jb 0x497e79
mov byte [esp + 0x17], 1
jmp 0x497e7d
mov edi, 1
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0xd8], 0xffffffff
je 0x497eb5
mov edx, dword [esp + 0x6c]
and dword [esp + 0x18], 0xfffffffe
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x497eb5
mov eax, dword [esp + 0x50]
push eax
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x49814c
call fcn.00420510
mov dword [esp + 0x3c], eax
mov dword [esp + 0xd8], edi
call fcn.00420510
mov dword [esp + 0x40], eax
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push str.Cant_create_dialog_using_memory_template
push ecx
mov byte [esp + 0xe4], 2
call fcn.00402340
add esp, 0xc
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
push str.wx.sys_error
lea ecx, [esp + 0x54]
mov dword [esp + 0xdc], 3
call fcn.00402bb0
mov byte [esp + 0xd8], 4
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], str....._srcmsw_toplevel.cpp
mov dword [esp + 0x84], str.wxTopLevelWindowMSW::CreateDialog
mov dword [esp + 0x80], 0x166
mov dword [esp + 0x88], 0x5fcf00
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebp, 7
xor edx, edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], dx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xd8], 5
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
mov edi, eax
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xb0]
call fcn.00402610
mov ecx, dword [esp + 0xa0]
cmp ecx, ebx
jne 0x49803d
push 0x20
call fcn.00584773
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0xd8], 6
cmp esi, ebx
je 0x49802c
push 0x64
call fcn.00447710
push 4
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00585c5e
mov dword [esi], eax
push 0x64
mov byte [esp + 0xe8], 7
call fcn.00447710
push 4
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
call fcn.00585c5e
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, esi
jmp 0x49802e
xor ecx, ecx
mov byte [esp + 0xd8], 5
mov dword [esp + 0xa0], ecx
lea edx, [esp + 0x50]
push edx
call fcn.004775a0
lea ecx, [esp + 0x3c]
mov dword [eax], edi
call fcn.0041de00
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040b680
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.005844d1
add esp, 0xc
cmp dword [esp + 0xb8], 8
jb 0x498087
mov edx, dword [esp + 0xa4]
push edx
call fcn.00584768
add esp, 4
mov esi, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], ax
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x498101
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
push 0x40b5f0
push ecx
push edx
mov byte [esp + 0xe4], 8
call fcn.00447740
mov edi, dword [esi + 0x10]
push edi
mov dword [esi + 0x18], ebx
call fcn.005844d1
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push 0x475ea0
push eax
push ecx
mov byte [esp + 0xf4], 4
call fcn.00447740
mov eax, dword [esi]
push eax
mov dword [esi + 8], ebx
call fcn.005844d1
push esi
call fcn.00584768
add esp, 0x24
mov edx, dword [esp + 0x6c]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x498122
mov eax, dword [esp + 0x50]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0x50], cx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0xd8], 0xffffffff
call fcn.004020c0
mov al, 1
jmp 0x497e13
xor al, al
jmp 0x498282
mov edx, dword [esi + 0xe0]
shr edx, 7
test dl, 1
je 0x4981e9
mov ecx, dword [0x695ad8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push 0x68e36c
call edx
push eax
call fcn.00495a20
add esp, 8
cmp eax, ebx
je 0x4981e9
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.004ad740
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xd8], 9
cmp ecx, ebx
je 0x4981d5
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x4981d5
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4981bd
xor ecx, ecx
jmp 0x4981c0
mov ecx, dword [eax + 0x20]
mov eax, dword [esi + 0x138]
push ecx
push 1
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd8], 0xffffffff
call fcn.00506650
cmp dword [ebp + 0x10], ebx
je 0x498209
cmp dword [ebp + 0x14], 8
jb 0x4981f9
mov eax, dword [ebp]
jmp 0x4981fb
mov eax, ebp
mov ecx, dword [esi + 0x138]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0x138]
push edx
mov ecx, esi
call fcn.004a9b00
mov eax, dword [esi]
mov eax, dword [eax + 0x384]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp eax, 0x80000000
jne 0x49826a
mov eax, dword [esi + 0x138]
push 0x16
push ecx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x498280
push ebx
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esi + 0x138]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov al, 1
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc8
ret 0x10