Function at 0x4125f4
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x34
push ebp
push edi
push esi
push ebx
mov eax, dword [esp + 0x48]
mov dword [0x41db78], eax
mov ebp, dword [esp + 0x50]
push 0x10
push 0x41e6f8
push 0
push eax
call sub.user32.dll_LoadStringA
push 0x41e6f8
push 0x41de48
call sub.crtdll.dll_strcpy
push 0
push 0x41de48
call sub.user32.dll_FindWindowA
mov edi, eax
add esp, 8
test edi, edi
je 0x41276c
call fcn.0040b374
mov esi, eax
test esi, esi
je 0x4126ba
push 1
push 0x410988
call sub.user32.dll_EnumWindows
mov edx, 0x41e6f8
push 0xa
mov ecx, edx
mov eax, edx
and ecx, 3
je 0x41267c
jp 0x412677
cmp ecx, 2
je 0x412672
cmp byte [eax], ch
je 0x4126a2
inc eax
cmp byte [eax], ch
je 0x4126a2
inc eax
cmp byte [eax], ch
je 0x4126a2
inc eax
mov ecx, dword [eax]
test cl, ch
jne 0x41268a
test cl, cl
je 0x4126a2
test ch, ch
je 0x4126a1
test ecx, 0xff0000
je 0x4126a0
add eax, 4
test ecx, 0xff000000
jne 0x41267c
sub eax, 3
inc eax
inc eax
sub eax, edx
add eax, edx
push eax
mov eax, dword [0x42653c]
push eax
call sub.crtdll.dll__itoa
add esp, 0xc
jmp 0x41276c
push edi
call sub.user32.dll_GetLastActivePopup
push edi
mov ebx, eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4126d9
push esi
push esi
push 0x400
push edi
call sub.user32.dll_SendMessageA
push edi
call sub.user32.dll_SetForegroundWindow
cmp ebx, edi
je 0x4126f1
push 5
push ebx
call sub.user32.dll_ShowWindow
push ebx
call sub.user32.dll_SetForegroundWindow
test ebp, ebp
je 0x41337b
cmp byte [ebp], 0
je 0x41337b
mov dword [esp + 0x10], 0x81a
mov eax, ebp
mov edx, ebp
and eax, 3
je 0x41272a
jp 0x412725
cmp eax, 2
je 0x412720
cmp byte [edx], ah
je 0x41274e
inc edx
cmp byte [edx], ah
je 0x41274e
inc edx
cmp byte [edx], ah
je 0x41274e
inc edx
mov eax, dword [edx]
test al, ah
jne 0x412738
test al, al
je 0x41274e
test ah, ah
je 0x41274d
test eax, 0xff0000
je 0x41274c
add edx, 4
test eax, 0xff000000
jne 0x41272a
sub edx, 3
inc edx
inc edx
sub edx, ebp
lea eax, [esp + 0x10]
inc edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edx
push eax
push esi
push 0x4a
push edi
call sub.user32.dll_SendMessageA
jmp 0x41337b
call sub.comctl32.dll_InitCommonControls
mov eax, dword [esp + 0x54]
mov dword [0x41e33c], eax
call fcn.0040b3f0
call fcn.004103a4
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x41e5cc], eax
push 0x6f
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadCursorA
mov dword [0x41e6f4], eax
push 0x70
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadCursorA
mov dword [0x41e6d4], eax
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x41e708], eax
push 0x10
push 0x41e580
push 6
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
push 0x10
push 0x41e6e0
push 1
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
push 0x10
push 0x41da4c
push 4
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
push 0x10
push 0x41dcd8
push 3
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
push 0x10
push 0x41de88
push 2
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadStringA
push 0x6a
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadAcceleratorsA
mov dword [0x41df34], eax
push 0x69
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadMenuA
mov dword [0x41dce8], eax
push 0x68
mov eax, dword [0x41db78]
push eax
call sub.user32.dll_LoadMenuA
mov dword [0x41e15c], eax
push 0x4125e5
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x41e6f0], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x4109f8
mov dword [esp + 0x24], 0
mov eax, dword [0x41db78]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
push 0x65
push eax
call sub.user32.dll_LoadIconA
mov dword [esp + 0x30], eax
lea ebx, [esp + 0x1c]
mov dword [esp + 0x38], 0xd
mov dword [esp + 0x3c], 0
mov eax, dword [0x41e5cc]
mov dword [esp + 0x40], 0x41de48
mov dword [esp + 0x34], eax
push ebx
call sub.user32.dll_RegisterClassA
mov dword [esp + 0x20], 0x40f6bc
mov eax, dword [0x41e158]
mov dword [esp + 0x40], 0x41de88
mov dword [esp + 0x38], eax
push ebx
call sub.user32.dll_RegisterClassA
mov dword [esp + 0x20], 0x40f3b4
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x40], 0x41da4c
push ebx
call sub.user32.dll_RegisterClassA
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x40ecc8
mov dword [esp + 0x38], 6
mov dword [esp + 0x28], 2
mov dword [esp + 0x40], 0x41dcd8
push ebx
call sub.user32.dll_RegisterClassA
mov ebx, dword [0x426850]
test ebx, ebx
jne 0x4130d2
call fcn.004137e4
test eax, eax
je 0x4130d2
call fcn.004017b4
call fcn.0040c674
test eax, eax
je 0x4130d2
cmp dword [0x426920], 0xfb9
sete al
mov ecx, eax
and ecx, 1
mov dword [0x426804], ecx
push ebx
mov eax, dword [0x41db78]
push eax
cmp dword [0x41dee0], 0
je 0x41299a
mov eax, dword [0x41dce8]
jmp 0x41299f
mov eax, dword [0x41e15c]
push eax
push 0
mov ecx, dword [0x41e594]
mov eax, dword [0x41e59c]
sub eax, ecx
push eax
mov edx, dword [0x41e590]
mov eax, dword [0x41e598]
sub eax, edx
push eax
push ecx
push edx
push 0x2cf0000
push 0x41e6f8
push 0x41de48
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x41e2a4], eax
test eax, eax
je 0x4130d2
call fcn.00401314
test eax, eax
je 0x4130d2
call fcn.00407b50
test eax, eax
je 0x4130d2
cmp dword [0x41c658], 0
je 0x412a26
mov dword [0x41c658], 0
cmp dword [0x41c578], 2
je 0x412a26
push 0xfc1
call fcn.00401b9c
add esp, 4
call fcn.00418bf4
test edi, edi
je 0x412a5a
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x81b
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x4109f4
push eax
mov eax, dword [0x41e2a4]
push eax
push 0x4a
push edi
call sub.user32.dll_SendMessageA
call fcn.004106a0
mov eax, dword [0x41e33c]
push eax
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_UpdateWindow
xor esi, esi
mov ebx, 0xfa2
test ebp, ebp
je 0x412a9f
cmp byte [ebp], 0
je 0x412a9f
push 0x104
push ebp
push 0x41e054
call sub.crtdll.dll_strncpy
add esp, 0xc
cmp byte [0x41e054], 0
je 0x412ab9
push 0x41e054
call fcn.00409adc
add esp, 4
test eax, eax
jne 0x412abe
call fcn.004135d4
mov dword [0x423c5c], 0
call fcn.00414830
cmp dword [0x423234], 0
je 0x412aec
cmp dword [0x426920], 0xfb7
jne 0x412aec
mov dword [0x4267f8], 0x7ea
test ebx, ebx
je 0x412b24
call fcn.0040d364
xor esi, esi
cmp ebx, 0xfb7
je 0x412b24
cmp ebx, 0xfbb
je 0x412b24
cmp ebx, 0xfba
je 0x412b24
mov eax, dword [0x422dac]
cmp word [eax + 8], 0
setle al
mov esi, eax
and esi, 0xff
push 0x113
call fcn.0041242c
mov eax, dword [0x426920]
add esp, 4
cmp eax, 0xfb7
jne 0x412b44
mov eax, dword [0x426924]
jmp 0x412b6c
cmp eax, 0xfb9
je 0x412b61
cmp dword [0x41c660], 0
je 0x412b71
mov eax, dword [0x425090]
cmp dword [0x426924], eax
je 0x412b71
mov eax, 5
sub eax, dword [0x426924]
mov dword [0x426928], eax
cmp dword [0x4267f8], 0
jne 0x412c6a
cmp dword [0x41dcf0], 0
jne 0x412c6a
cmp dword [0x426920], 0xfb9
je 0x412c6a
test esi, esi
jne 0x412c6a
mov eax, dword [0x426924]
cmp dword [0x426928], eax
je 0x412be4
cmp dword [0x426540], 1
jne 0x412c6a
call fcn.0041a7b4
test eax, eax
jne 0x412c6a
cmp dword [0x425084], 0
jne 0x412c6a
mov eax, dword [0x426924]
cmp dword [0x426928], eax
jne 0x412bee
mov dword [0x425010], 1
call fcn.00415bec
mov ebx, eax
mov dword [0x42692c], 0
cmp dword [0x4267f8], 0
jne 0x412c12
call fcn.00414830
call fcn.0040d364
cmp ebx, 0xffffffff
je 0x412c65
test ebx, ebx
je 0x412c6a
cmp dword [0x41c5c0], 0
je 0x412c30
cmp dword [0x426920], 0xfb9
jne 0x412c39
push ebx
call fcn.00405aec
add esp, 4
cmp dword [0x41c660], 0
je 0x412c65
cmp dword [0x426920], 0xfb8
jne 0x412c65
mov eax, dword [0x426924]
cmp dword [0x426928], eax
jne 0x412c65
push 0
call fcn.00402400
add esp, 4
mov esi, 1
mov ebx, dword [0x4267f8]
mov dword [0x4267f8], 0
test ebx, ebx
je 0x4130c9
cmp ebx, 0x7e8
jne 0x412c94
call fcn.0041374c
jmp 0x4130c9
mov dword [0x426a3c], 0
lea eax, [ebx - 0xfb5]
cmp eax, 1
jbe 0x412ce5
mov eax, dword [0x426920]
cmp eax, 0xfb7
je 0x412cc9
cmp eax, 0xfb8
jne 0x412ce5
mov eax, dword [0x426924]
cmp dword [0x426928], eax
jne 0x412ce5
mov eax, dword [0x426924]
add eax, 0xfffffffe
shl eax, 2
mov edx, dword [eax + 0x41c44c]
mov dword [eax + 0x41c468], edx
call fcn.004016c8
mov edx, dword [0x41c658]
test edx, edx
jne 0x412cf6
mov eax, dword [0x426614]
mov byte [eax], dl
call fcn.0040d4c4
call fcn.0040cde0
cmp ebx, 0xfbb
je 0x4130c9
call fcn.00413528
call fcn.0040c564
cmp ebx, 0xfa3
je 0x412f0b
jg 0x412dba
cmp ebx, 0x7ee
je 0x413060
jg 0x412d72
cmp ebx, 0x7e9
je 0x412ffa
jg 0x412d55
cmp ebx, 0x233
je 0x413009
jmp 0x4130c9
cmp ebx, 0x7ea
je 0x4130a3
cmp ebx, 0x7eb
je 0x413052
jmp 0x4130c9
cmp ebx, 0x81a
je 0x413036
jg 0x412d9d
cmp ebx, 0x7ef
je 0x413059
cmp ebx, 0x7f0
je 0x413076
jmp 0x4130c9
cmp ebx, 0xfa1
je 0x412e58
cmp ebx, 0xfa2
je 0x412eb8
jmp 0x4130c9
cmp ebx, 0xfe0
je 0x412f93
jg 0x412e10
cmp ebx, 0xfb5
je 0x412f3a
jg 0x412df3
cmp ebx, 0xfa4
je 0x412f1a
cmp ebx, 0xfa5
je 0x412f24
jmp 0x4130c9
cmp ebx, 0xfb6
je 0x412f4d
cmp ebx, 0xfdf
je 0x412f77
jmp 0x4130c9
cmp ebx, 0xfe4
je 0x412fca
jg 0x412e3b
cmp ebx, 0xfe2
je 0x412fa2
cmp ebx, 0xfe3
je 0x412fb1
jmp 0x4130c9
cmp ebx, 0xff8
je 0x41308c
cmp ebx, 0x102e
je 0x41309c
jmp 0x4130c9
cmp dword [0x41c660], 0
je 0x412e6b
push 0
call fcn.00402400
add esp, 4
call fcn.004017b4
cmp dword [0x426920], 0xfb9
sete al
mov ecx, eax
and ecx, 1
mov dword [0x41dcf0], 0
mov dword [0x426804], ecx
call fcn.004135d4
call fcn.00417140
cmp dword [0x41c5c0], 0
je 0x4130a3
cmp dword [0x41c578], 0
je 0x4130a3
jmp 0x412ef7
push 0
call fcn.00409adc
add esp, 4
test eax, eax
je 0x4130c9
cmp dword [0x41c660], 0
je 0x412edd
push 0
call fcn.00402400
add esp, 4
cmp dword [0x41c5c0], 0
je 0x4130c9
cmp dword [0x41c578], 0
je 0x4130c9
mov eax, dword [0x426924]
mov dword [0x42508c], eax
call fcn.004027a0
jmp 0x4130c9
push 0
call fcn.0040a094
add esp, 4
jmp 0x4130c9
call fcn.00418a3c
jmp 0x4130c9
push 0
push 0
push 0x10
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4130c9
cmp dword [0x41c660], 0
jne 0x412f5f
mov eax, dword [0x426924]
jmp 0x413065
cmp dword [0x41c660], 0
je 0x412f6d
cmp dword [0x41e5c0], 0
jge 0x412f6d
push ebx
call fcn.00402f8c
add esp, 4
jmp 0x4130c9
mov eax, dword [0x426924]
jmp 0x41307b
cmp dword [0x41c660], 0
je 0x4130c9
push 0
call fcn.00402400
add esp, 4
jmp 0x4130c9
call fcn.004135d4
call fcn.00417140
jmp 0x4130a3
call fcn.00413634
call fcn.00417140
jmp 0x4130a3
cmp dword [0x426924], 3
jne 0x4130a3
mov dword [0x426924], 2
jmp 0x412fe1
cmp dword [0x426924], 2
jne 0x4130a3
mov dword [0x426924], 3
mov dword [0x426804], 1
call fcn.00413564
call fcn.00417140
jmp 0x4130a3
push 0xa
call fcn.0040ca3c
add esp, 4
jmp 0x4130a3
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x413029
mov eax, dword [0x41e33c]
push eax
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x41e2a4]
push eax
call sub.user32.dll_SetForegroundWindow
jmp 0x413043
cmp byte [0x41e054], 0
je 0x4130c9
push 0x41e054
call fcn.00409adc
add esp, 4
jmp 0x4130c9
call fcn.00402c6c
jmp 0x4130c9
call fcn.004032cc
jmp 0x4130c9
mov eax, dword [0x42508c]
push eax
mov eax, dword [0x41e5c0]
push eax
call fcn.00419370
add esp, 8
jmp 0x4130c9
mov eax, dword [0x42508c]
push eax
mov eax, dword [0x41e5c0]
push eax
call fcn.00419560
add esp, 8
jmp 0x4130c9
call fcn.0040c584
test eax, eax
jne 0x4130c9
mov ebx, 0x12
jmp 0x4130c9
call fcn.00403ea4
jmp 0x4130c9
mov eax, 5
sub eax, dword [0x426924]
mov dword [0x426928], eax
cmp dword [0x426920], 0xfb7
jne 0x4130c9
mov dword [0x426920], 0xfb8
cmp ebx, 0x12
jne 0x412abe
push 0xfc3
call fcn.00401b9c
add esp, 4
cmp dword [0x41d22c], 0
je 0x4130f1
cmp dword [0x41c784], 0
jne 0x4130fb
push 0xb
call fcn.0040ca3c
add esp, 4
call fcn.00406ca4
mov eax, dword [0x41c784]
test eax, eax
je 0x413126
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c784]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x423c74]
test eax, eax
je 0x41314c
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x423c74]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x41d22c]
test eax, eax
je 0x413172
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41d22c]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x422db4]
test eax, eax
je 0x413198
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x422db4]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
xor ebx, ebx
mov esi, 0x424b78
mov eax, dword [esi]
test eax, eax
je 0x4131bf
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
add esi, 4
inc ebx
cmp ebx, 9
jle 0x41319f
mov eax, dword [0x41c78c]
test eax, eax
je 0x4131ee
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c78c]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x41c894]
test eax, eax
je 0x413214
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c894]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x41c898]
test eax, eax
je 0x41323a
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c898]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x41c788]
test eax, eax
je 0x413260
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c788]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x41c444]
test eax, eax
je 0x413286
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c444]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x422dac]
test eax, eax
je 0x4132ac
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x422dac]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x42428c]
test eax, eax
je 0x4132d2
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x42428c]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [0x41c5ac]
test eax, eax
je 0x4132f8
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x41c5ac]
push eax
call sub.kernel32.dll_GlobalHandle
push eax
call sub.kernel32.dll_GlobalFree
push 0
push 0x41de48
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x413331
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x81b
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x4109f4
push eax
push 0
push 0x4a
push edi
call sub.user32.dll_SendMessageA
call fcn.00410464
cmp dword [0x41e268], 0
je 0x41334a
mov eax, dword [0x41e2ac]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0x41dd04]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0x41e040]
push eax
call sub.gdi32.dll_DeleteObject
cmp dword [0x41dee0], 0
je 0x413370
mov eax, dword [0x41e15c]
jmp 0x413375
mov eax, dword [0x41dce8]
push eax
call sub.user32.dll_DestroyMenu
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x34
ret 0x10