Function at 0x402ccf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x451a42
call fcn.004435ac
sub esp, 0x42c
mov eax, dword [0x45a2fc]
push ebx
push esi
cmp eax, 0xffffffff
push edi
jne 0x402d08
push 0x1003
push 0x5000
call fcn.00430bd4
test eax, eax
mov dword [0x45a2fc], eax
jl 0x4030ec
push 0x884
push eax
call fcn.00430c23
mov esi, eax
test esi, esi
je 0x4030ec
push 0xee5
push dword [0x45a2fc]
call fcn.00430c23
push 1
mov dword [esi + 0x77c], eax
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi + 0x77c]
push dword [ebp + 8]
and dword [eax + 0x28], 0
mov eax, dword [esi + 0x77c]
mov dword [eax + 0x2c], ecx
lea eax, [esi + 0x18]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x77c]
mov dword [esi + 0x128], eax
mov eax, dword [ebp + 0x14]
add ecx, 0x2c
mov dword [esi + 0x12c], eax
mov eax, dword [ebp + 0x18]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.00402788
mov eax, dword [ebp + 0x1c]
push 0
push 0xfffe
mov dword [esi + 8], eax
call fcn.0040b927
lea ebx, [esi + 0x780]
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
push eax
call fcn.0042fcf3
lea eax, [esi + 0x781]
push 4
push eax
push ebx
call fcn.00442ea0
mov eax, dword [esi + 0x77c]
add eax, 0x2c
push eax
push dword [esi + 8]
push 0
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e424
add esp, 0x2c
mov dword [esi + 0x14], eax
test eax, eax
je 0x4030e0
lea ecx, [ebp - 0x18]
push ecx
push str.SECRET_NATIVE_RECT
push eax
call fcn.0042e806
add esp, 0xc
cmp dword [ebp - 0x18], 0xc
mov ebx, eax
mov dword [ebp + 0xc], ebx
jbe 0x402e25
sub dword [ebp - 0x18], 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 0xc]
push eax
push dword [esi + 0xc]
call fcn.0040ba9c
test eax, eax
jne 0x402e25
push eax
jmp 0x4030ca
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x438]
push eax
push 0x3c
push dword [esi + 0xc]
call fcn.0040bd38
cmp dword [ebp - 0x10], 0xf
jb 0x402e9f
push 6
xor ebx, ebx
lea eax, [esi + 0x144]
pop ecx
mov edx, dword [ebp + ebx - 0x438]
add ebx, 4
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x402e4b
lea eax, [esi + 0x15c]
mov dword [ebp - 0x14], 6
mov dword [ebp + 0x1c], eax
lea eax, [ebp + ebx - 0x438]
push eax
push dword [ebp + 0x1c]
call edi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x1c]
lea ebx, [ebx + eax + 1]
call fcn.004044f8
add dword [ebp + 0x1c], 0x105
dec dword [ebp - 0x14]
pop ecx
jne 0x402e6d
mov ebx, dword [ebp + 0xc]
push 1
push dword [esi + 0x14]
call fcn.0042e569
push 1
push dword [esi + 0x14]
call fcn.00404b7b
lea eax, [ebp - 0x438]
push 0
push eax
push dword [esi + 0x14]
call fcn.0042e557
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1e
push dword [esi + 0xc]
call fcn.0040bd38
push dword [ebp - 0x10]
lea eax, [ebp - 0x438]
push dword [ebp + 8]
push eax
call fcn.00406cf9
mov dword [esi + 0x13c], eax
push 0x44
mov dword [0x45fc48], esi
call fcn.00442e85
pop ecx
mov dword [ebp + 0x1c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x402f1c
push dword [ebp + 8]
lea ecx, [ebp - 0x438]
push ecx
push esi
mov ecx, eax
call fcn.00407abf
jmp 0x402f1e
xor eax, eax
push dword [esi + 0x77c]
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x140], eax
push esi
call fcn.0040910d
push 0x45fecc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402f58
lea eax, [esi + 0x780]
push 0x45fecc
push eax
call edi
jmp 0x4030a7
lea eax, [ebp - 0x10]
push eax
push 0
push 0x3d
push dword [esi + 0xc]
call fcn.0040bd38
cmp dword [ebp - 0x10], 1
jne 0x4030a7
push 5
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4030a7
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4030a7
push edi
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x40309b
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x40308e
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp + 8]
call fcn.00442b50
add esp, 0xc
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00406f5c
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
sub eax, 0x404
je 0x403043
sub eax, 0xd
je 0x40303a
dec eax
je 0x403031
sub eax, 0x3f2
je 0x403028
push 8
push str.MS_Sans_Serif
jmp 0x40304a
push 9
push 0x45a388
jmp 0x40304a
push 9
push 0x45a380
jmp 0x40304a
push 9
push 0x45a370
jmp 0x40304a
push 9
push 0x45a368
lea ecx, [ebp - 0x24]
call fcn.00407107
push esi
push 0x407221
push dword [esi + 0x12c]
push dword [ebp - 0x24]
call edi
push eax
push dword [0x45ffcc]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push dword [ebp + 8]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00406feb
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test bl, bl
jne 0x4030a4
push 0
push 0x2b
push dword [ebp + 0xc]
jmp 0x4030cd
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x77c]
push dword [ebx]
push dword [ebp + 0x14]
push 0xb
push dword [ebp + 0x18]
push esi
call fcn.0043fd86
xor edi, edi
mov dword [esi + 0x134], eax
cmp eax, edi
jne 0x4030f3
push edi
push 0x2b
push ebx
push dword [esi + 0x14]
call fcn.0042e83e
push dword [esi + 0x14]
call fcn.0042e51d
add esp, 0x14
push esi
push dword [0x45a2fc]
call fcn.00430cfe
xor eax, eax
jmp 0x4032a4
movzx ecx, word [ebx + 4]
push dword [esi + 0x77c]
mov dword [esi + 0x120], ecx
mov ecx, dword [ebx + 4]
shr ecx, 0x10
push esi
mov dword [esi + 0x124], ecx
push dword [ebx + 8]
push eax
call fcn.004418c6
push eax
mov dword [esi + 0x130], eax
push dword [esi + 0x134]
call fcn.00440534
lea eax, [ebp - 0x10]
mov dword [esi + 0x138], edi
push eax
push edi
push 0x14
push dword [esi + 0xc]
call fcn.0040bd38
cmp dword [ebp - 0x10], 1
jne 0x403292
lea eax, [esi + 0x144]
push eax
push edi
mov edi, str.Global
push str.Number1
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [esi + 0x148]
xor ebx, ebx
push eax
push ebx
push str.Number2
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [esi + 0x14c]
push eax
push ebx
push str.Number3
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [esi + 0x150]
push eax
push ebx
push str.Number4
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [esi + 0x154]
push eax
push ebx
push str.Number5
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [esi + 0x158]
push eax
push ebx
push str.Number6
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x15c]
push eax
push str.String1
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x261]
push eax
push str.String2
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x366]
push eax
push str.String3
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x46b]
push eax
push str.String4
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x570]
push eax
push str.String5
push edi
push dword [esi + 0x13c]
call fcn.00406e33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x675]
push eax
push str.String6
push edi
push dword [esi + 0x13c]
call fcn.00406e33
mov ebx, dword [ebp + 0xc]
push 0
push 0x2b
push ebx
push dword [esi + 0x14]
call fcn.0042e83e
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18