Function at 0x4027e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5560ae
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5aedcc]
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 0x594340
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 - 0xc4], 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.00403c4d
push ebx
push esi
push eax
mov dword [ebp - 0xc8], eax
call fcn.00539a10
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.00539f90
add esp, 0xc
xor dl, dl
xor ecx, ecx
lea esi, [ecx + 1]
test dl, dl
je 0x4028a2
mov byte [ebp + ecx - 0xc0], 0
jmp 0x4028b5
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 0x402894
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 0x4028c0
push 0xb0
call fcn.00403c15
mov esi, eax
add esp, 4
test esi, esi
je 0x402919
push 0xb0
push 0
push esi
call fcn.00539f90
add esp, 0xc
jmp 0x40291b
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 ecx, dword [esi + 0xc]
test bl, 3
jne 0x402975
mov eax, ecx
lea edx, [ebp - 0x2c]
shr ecx, 0x18
shl eax, 8
or ecx, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0xd4]
call fcn.00401bd0
mov ecx, dword [esi]
xor ecx, dword [eax]
mov eax, ebx
shr eax, 2
mov eax, dword [eax*4 + 0x5b07fc]
jmp 0x402977
mov eax, dword [esi]
xor eax, ecx
mov edx, 0x10
mov ecx, esi
inc ebx
add esi, 4
mov dword [edx + ecx], eax
cmp ebx, 0x2c
jl 0x402940
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
mov edi, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc8]
push edi
push esi
call fcn.004021b0
test al, al
je 0x4029d4
movsx eax, byte [esi + edi - 1]
cmp eax, 1
jl 0x4029bf
cmp eax, 0x10
jle 0x4029d4
push eax
lea eax, [ebp - 0xac]
push str.fill_char_error___d_
push eax
call fcn.00402270
add esp, 0xc
mov ecx, esi
call fcn.004036e0
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x402bc5
call fcn.00404039
mov ecx, eax
test ecx, ecx
je 0x402bf4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
push ecx
mov byte [ebp - 4], 1
mov edi, esp
mov bx, word [0x5b14cc]
mov dword [ebp - 0xc4], edi
call fcn.00404039
mov ecx, eax
test ecx, ecx
je 0x402bfe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push str.Main
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00402f30
test al, al
jne 0x402a66
mov ecx, str.Main
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a50
sub ecx, edx
push ecx
push str.Main
mov ecx, edi
call fcn.004033a0
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.004023e0
add esp, 4
mov byte [ebp - 4], 3
lea edi, [esi - 0x10]
mov ecx, dword [eax]
or ebx, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x402adb
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x402acc
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x402acc
push edx
call fcn.004031d0
add esp, 4
mov dword [ebp - 0xc4], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x402ac4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc4]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
jmp 0x402adb
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004033a0
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0xc8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402afc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc4], ecx
cmp dword [eax + 0x7c], 0
je 0x402b9e
mov eax, dword [eax + 0x78]
add eax, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [eax + 0x18]
test edx, edx
je 0x402b9e
cmp dword [eax + 0x14], 0
je 0x402b9e
mov edi, dword [eax + 0x20]
xor ebx, ebx
mov eax, dword [eax + 0x24]
add edi, ecx
add eax, ecx
mov dword [ebp - 0xcc], eax
test edx, edx
je 0x402b9e
mov eax, dword [edi]
add eax, ecx
push eax
push esi
call fcn.00549508
add esp, 8
test eax, eax
je 0x402b75
mov eax, dword [ebp - 0xc8]
inc ebx
add dword [ebp - 0xcc], 2
add edi, 4
mov ecx, dword [ebp - 0xc4]
cmp ebx, dword [eax + 0x18]
jb 0x402b45
jmp 0x402b9e
mov eax, dword [ebp - 0xcc]
movzx ecx, word [eax]
mov eax, dword [ebp - 0xc8]
cmp ecx, dword [eax + 0x14]
ja 0x402b9e
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0xc4]
mov eax, dword [eax + ecx]
add eax, ecx
je 0x402b9e
call eax
mov ecx, dword [ebp - 0xd0]
call fcn.00403b90
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402bc5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0xb0
push dword [ebp - 0xb0]
call fcn.00537f40
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.00537f32
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022e0
push 0x80004005
call fcn.004022e0
int3