Function at 0x402770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5531ae
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x5abdcc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x591010
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push 0
mov dword [ebp - 0xc8], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebx + 1]
mov esi, eax
push ecx
call fcn.00403abd
push ebx
push esi
push eax
mov dword [ebp - 0xc4], eax
call fcn.00538ff0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movaps xmm0, xmmword [str.__Bid_locale_std]
lea eax, [ebp - 0xc0]
push 0x94
push 0
push eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
call fcn.00539570
add esp, 0xc
xor dl, dl
xor ecx, ecx
lea esi, [ecx + 1]
test dl, dl
je 0x402832
mov byte [ebp + ecx - 0xc0], 0
jmp 0x402845
mov al, byte [ebp + ecx - 0x24]
test al, al
movzx edx, dl
mov byte [ebp + ecx - 0xc0], al
cmove edx, esi
inc ecx
cmp ecx, 0x10
jl 0x402824
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0xbd]
mov byte [ebp + ecx - 0x24], al
mov al, byte [ebp + ecx - 0xbe]
mov byte [ebp + ecx - 0x23], al
mov al, byte [ebp + ecx - 0xbf]
mov byte [ebp + ecx - 0x22], al
mov al, byte [ebp + ecx - 0xc0]
mov byte [ebp + ecx - 0x21], al
add ecx, 4
cmp ecx, 0x10
jl 0x402850
push 0xb0
call fcn.00403a80
mov esi, eax
add esp, 4
test esi, esi
je 0x4028a9
push 0xb0
push 0
push esi
call fcn.00539570
add esp, 0xc
jmp 0x4028ab
xor esi, esi
mov eax, dword [ebp - 0x24]
mov ebx, 4
mov dword [ebp - 0xb0], esi
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
nop dword [eax]
mov eax, dword [esi + 0xc]
test bl, 3
jne 0x402900
rol eax, 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x28], eax
call fcn.00401bd0
mov ecx, dword [esi]
xor ecx, dword [eax]
mov eax, ebx
shr eax, 2
mov edx, dword [eax*4 + 0x5ad6ec]
xor edx, ecx
jmp 0x402904
mov edx, dword [esi]
xor edx, eax
mov dword [esi + 0x10], edx
inc ebx
add esi, 4
cmp ebx, 0x2c
jl 0x4028d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
mov edi, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xc4]
push edi
push esi
call fcn.004021d0
test al, al
je 0x402958
movsx eax, byte [esi + edi - 1]
cmp eax, 1
jl 0x402943
cmp eax, 0x10
jle 0x402958
push eax
lea eax, [ebp - 0xac]
push str.fill_char_error___d_
push eax
call fcn.00402290
add esp, 0xc
mov ecx, esi
call fcn.004035b0
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x402aee
call fcn.00403eb9
mov ecx, eax
test ecx, ecx
je 0x402b1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov di, word [0x5ae3bc]
mov dword [ebp - 0xc8], esi
call fcn.00403eb9
mov ecx, eax
test ecx, ecx
je 0x402b27
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.Main
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402ee0
test al, al
jne 0x4029e6
mov ecx, str.Main
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029d0
sub ecx, edx
push ecx
push str.Main
mov ecx, esi
call fcn.00403250
mov edx, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.00402400
add esp, 4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402c90
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0xc4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402a29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0xc8], ecx
cmp dword [ebx + 0x7c], 0
je 0x402aca
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x402aca
cmp dword [ebx + 0x14], 0
je 0x402aca
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
add edi, ecx
add eax, ecx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xcc], eax
test edx, edx
je 0x402aca
mov eax, dword [edi]
add eax, ecx
push eax
push esi
call fcn.00546f97
add esp, 8
test eax, eax
je 0x402aa7
mov eax, dword [ebp - 0xc4]
add edi, 4
add dword [ebp - 0xcc], 2
inc eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], eax
cmp eax, dword [ebx + 0x18]
jb 0x402a71
jmp 0x402aca
mov eax, dword [ebp - 0xcc]
movzx ecx, word [eax]
cmp ecx, dword [ebx + 0x14]
ja 0x402aca
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0xc8]
mov eax, dword [eax + ecx]
add eax, ecx
je 0x402aca
call eax
mov ecx, dword [ebp - 0x28]
call fcn.004039f0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402aee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0xb0
push dword [ebp - 0xb0]
call fcn.0053758a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053757c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402300
push 0x80004005
call fcn.00402300
int3