Function at 0x402050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x41cbc8]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x41db50]
push edi
push 0xf0
push eax
mov ebx, 1
push esi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor edi, edi
cmp eax, edi
je 0x402285
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x402285
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x402285
lea esp, [esp]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x402285
mov edx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x94], edx
cmp cx, ax
jne 0x40219f
lea edx, [ebp - 0x84]
mov dword [ebp - 0x88], edx
cmp esi, edi
jne 0x402106
mov dword [ebp - 0x88], edi
jmp 0x402154
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
push 0x80
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x88]
push edi
push ecx
call fcn.00401100
mov edx, dword [ebp - 0x88]
push edi
push esi
push edi
push edx
call fcn.0040a471
add esp, 0x20
cmp eax, 0x50
ja case.0x402220.133
movzx eax, byte [eax + 0x4022c8]
jmp dword [eax*4 + 0x4022b8]
xor edi, edi
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x90]
push ecx
mov ecx, dword [eax + 4]
push edi
push 0x143
push ebx
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
jne 0x40217d
mov dword [ebp - 0x8c], edi
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
cmp eax, edx
je 0x402271
push eax
call fcn.0040a556
add esp, 4
jmp 0x402271
mov ecx, 0x1234
cmp cx, ax
jne 0x402271
lea edx, [ebp - 0x84]
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0x88], edx
cmp esi, edi
jne 0x4021db
xor eax, eax
mov dword [ebp - 0x88], eax
jmp 0x40222f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
push 0x80
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x88]
push edi
push ecx
call fcn.00401100
mov edx, dword [ebp - 0x88]
push edi
push esi
push edi
push edx
call fcn.0040a471
add esp, 0x20
cmp eax, 0x50
ja case.0x402220.133
movzx eax, byte [eax + 0x40232c]
jmp dword [eax*4 + 0x40231c]
mov eax, dword [ebp - 0x88]
xor edi, edi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xb0], eax
cmp eax, ecx
je 0x402248
push eax
call fcn.0040a556
add esp, 4
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0xb8]
push edx
mov edx, dword [ecx + 4]
push edi
push 0x401
push ebx
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
jne 0x402271
mov dword [ebp - 0x8c], edi
mov ebx, dword [ebp - 0x8c]
add esi, dword [ebp - 0x94]
cmp ebx, edi
jne 0x4020c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040a889
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.00401000
push 0x80070057
call fcn.00401000
push 0x80004005
call fcn.00401000
push edx
and dword [eax], eax
lcall 0x4022, 0xa4004022
add byte [esi + 16418], ch
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
lea ecx, [ecx]
daa
and al, byte [eax]
lcall 0x4022, 0xa4004022
add byte [esi + 16418], ch
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3