Function at 0x41a320
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x224
mov eax, dword [0x4660c0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, ecx
push 0x104
mov ecx, dword [edi + 0x38]
call fcn.00407ee0
mov eax, dword [edi + 0x38]
push 0x104
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [edi + 0x38]
mov ecx, dword [edx]
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a370
sub ecx, ebx
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a387
sub ecx, edx
sar ecx, 1
mov ecx, dword [edi + 0x3c]
je 0x41a3a6
push esi
mov byte [edi + 0x19], al
call fcn.00403ec0
jmp 0x41a3b2
push dword [edi + 0x38]
mov byte [edi + 0x19], 1
call fcn.00408070
call fcn.0040d300
xor bl, bl
lea ecx, [esp + 0x20]
mov ebp, eax
mov byte [esp + 0x13], bl
call fcn.00407c60
mov edx, 0x44e590
mov ecx, esi
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x41a3f6
test ax, ax
je 0x41a3f2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x41a3f6
add ecx, 4
add edx, 4
test ax, ax
jne 0x41a3d0
xor eax, eax
jmp 0x41a3fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41a4d9
push 0xa
push 0x44f0e8
push dword [0x466e90]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41a444
push 0x44f0f0
lea eax, [esp + 0x34]
push str.Resource_not_found__s
push eax
call fcn.0041b160
add esp, 0xc
lea eax, [esp + 0x30]
mov ecx, edi
push 1
push esi
push eax
push 0xb
call fcn.00419f40
push esi
push dword [0x466e90]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41a485
push 0x44f0f0
lea eax, [esp + 0x34]
push str.Resource_loading_error_found__s
push eax
call fcn.0041b160
add esp, 0xc
lea eax, [esp + 0x30]
mov ecx, edi
push 1
push ebx
push eax
push 0xb
call fcn.00419f40
mov bl, byte [esp + 0x13]
jmp 0x41a4e7
push esi
push dword [0x466e90]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b310
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esp + 0x1c]
call fcn.00428c00
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0041f3c0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x14]
call fcn.00407cb0
mov bl, byte [esp + 0x13]
jmp 0x41a4e7
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0041f420
add esp, 8
mov ecx, dword [edi + 0x78]
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov ecx, edi
call fcn.004173d0
test al, al
je 0x41a667
lea ecx, [esp + 0x20]
call fcn.00407d40
mov ecx, dword [edi + 0x74]
call fcn.00415a10
test al, al
je 0x41a667
mov eax, dword [edi + 0x78]
mov esi, dword [eax]
nop
mov eax, dword [esi + 8]
cmp eax, 0x66
jne 0x41a54e
push dword [esi + 0x10]
mov ecx, dword [edi + 0x7c]
call fcn.00413f50
test eax, eax
je 0x41a53a
mov dword [esi + 4], eax
push dword [esi + 0x18]
call fcn.0042f6d1
add esp, 4
mov dword [esi + 0x18], 0
jmp 0x41a59d
cmp eax, 0x74
je 0x41a564
cmp eax, 0x76
je 0x41a564
cmp eax, 0x83
je 0x41a564
cmp eax, 0x5d
jne 0x41a59d
push dword [esi + 0x10]
mov ecx, dword [edi + 0x74]
call fcn.00415c60
mov dword [esi + 4], eax
test eax, eax
jne 0x41a59d
push dword [esi + 0x18]
lea eax, [esp + 0x34]
push str.Undefined_class___s_
push eax
call fcn.0041b160
add esp, 0xc
lea eax, [esp + 0x30]
mov ecx, edi
push 1
push 0
push eax
push 0xb
call fcn.00419f40
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x41a520
push str.Exception
call fcn.0040d290
mov ecx, dword [edi + 0x74]
add esp, 4
push eax
call fcn.00415c60
push str.Global
mov dword [edi], eax
call fcn.0040d290
mov ecx, dword [edi + 0x74]
add esp, 4
push eax
call fcn.00415c60
mov ebx, eax
mov ecx, edi
push ebx
call fcn.0041a2f0
push 0x138
mov dword [edi + 8], eax
call fcn.00427927
add esp, 4
test eax, eax
je 0x41a602
push dword [edi + 0x68]
mov ecx, eax
call fcn.0041e540
mov esi, eax
jmp 0x41a604
xor esi, esi
mov ecx, dword [edi + 0x68]
lea eax, [edi + 0x18]
push eax
call fcn.0041d4d0
push str.System
lea ecx, [esp + 0x18]
call fcn.00407bf0
mov ecx, dword [0x466e94]
lea eax, [esp + 0x14]
push esi
push eax
push ebx
push dword [edi + 8]
call fcn.00417020
mov ecx, esi
call fcn.0041e760
push 0x138
push esi
call fcn.0042795c
mov ecx, dword [edi + 0x10]
add esp, 8
call fcn.00415dd0
push ebp
call fcn.0040d350
add esp, 4
mov dword [edi + 0x48], eax
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.00407c80
lea ecx, [esp + 0x20]
mov byte [edi + 4], bl
call fcn.00407cb0
mov ecx, dword [esp + 0x230]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004277ff
add esp, 0x224
ret 4