Function at 0x402130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4142f3
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x463090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x838], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x840], str.2XbCIYi5GbDCGgve0qthUOmxTro1pzVTODYgXKrvTiDnkBOcwipLEMiPcrC8i3AHKplxOO34N9APu7yFzStST4ipXKY345dY4PMzGtpEN1EdSHk335MK3bD40FYGcAaMNAAWwTkqzMbDiIFvGRcW6s4Rqck0hQGTRtFNQ9XP90JmCU7X1nhFDcK6FUWWYw4VXsHNNc0zUP6yNm8arThwPxlmw6Wu2FtaED365RzBx6etPB7w9O9IpwVu5CFCgK3JjeLnVUe93himRxribIxUE54AM0BlxCSu7DCPdY0HMsHs4rstpiQku3K4nqwGQv356n4bnzm1qm15F0qPwn8Go8rwXHkFf2xS85hCp6f8Xp0u3hAT3XacmW2TWiamRej3SA8VTQ3lJAF0BJ7Wk9pD4YSm5hmOSthxSNdl13zcozdVPf94xc3gGDOlqot7CAi2sPMEuK9vVG0Ej3L4GxXQ0b7xn0fmqKcXNSQ8EWunEQDuGK2xBGJHoLsWG9CEIxJBSk5AouM9cEVOHpVQXkFCLu3LorK93VDTxERlc8IrykS1apq8fhJWEguxReYX0hADpwie7xma1IHwVzoeKwDwaWS1QpSggldk0HbBLeiqbmMH06HQEaMGVhJdnzdfyg5fC80knDuF3oJ3ozbnUqflfR4sMWU4JyKsoRXNJ4rzQApWfXz0lIQSTfhiOnbXHaGLh7YTcK35fpLUJDAGyy5bjMhysmn9somM6eE3IKGp9S5pbnT92AbGtMpl634Q4W8QrGiaO6a2PKJVSj9R2E2kVst1nc1lEUn4M8UIAELHSloYjXR5GGgyPRHdlgeRrMojojfDIbepfEQ6XjCOVLckUWONjhRJKrpf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indResourceW]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
jne 0x4021b4
mov dword [ebp - 0x83c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004043d0
mov eax, dword [ebp - 0x83c]
jmp 0x4022ed
mov eax, dword [ebp - 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x820], eax
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x818]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
jne 0x40221f
mov dword [ebp - 0x830], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004043d0
mov eax, dword [ebp - 0x830]
jmp 0x4022ed
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x40225f
mov dword [ebp - 0x828], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004043d0
mov eax, dword [ebp - 0x828]
jmp 0x4022ed
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x4022c2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.004042e0
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x848], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x820]
push ecx
push 0
mov edx, dword [ebp - 0x814]
push edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x838]
call fcn.004023e0
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x844], str.MireB19TxqF3MB5ETo08xeskBVeDsm8EeJK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2aSeP8trMufe472UaIvEmtPjOsOjXWGVl2tQhAtmDPu8N4MCH6PCgAojLmwW7ksYFtyqnqFpt5FEFB32FLMjIhHnjKqK5hiEP3SV95mkSkbezEtHFgOoUQaIvppwEmEKKI8crdulWASvLPRcqtlhSKO832Ok1If6rPVMVxLcE5GXg4IYYPKvnRauAYAjJMjOy7JudPvi9fNBkWB5cNbkfB294lSdahOE7bj2rzLuOGbd9nygsywHgB6sbNF8nVI5Tvpf4dEuxy2oEiNhq9UehLbTum3FJFgQPAk2OSkiDFzRkTYar9gD250KogtQzRF0dXWQ83gd04D0OeUnVjlE5bP4CFVvInMSqyEBNxPtvdSSsjz9H38ikPpTdelpXCsg94EKYhsrMIev2pefKLzVBzioV1afAgUvfaf7HTmBdIaJM6wbkVNmGISTeFozheGGMwMV0RAAORLjnbo3NYVKklnPfmHReIDs1TJOOm1bniIVXI7BOoeFdgOPQJfs1cWar1CM5nmikGd696idcE14X46CBYNAKo8JHA3eEC9YPe5gXTQVXhEie9T
mov ecx, dword [ebp - 0x814]
mov dword [ebp - 0x824], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004043d0
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406bf9
mov esp, ebp
pop ebp
ret 0x1c