Function at 0x430d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d74b1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.004c9240
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x18], 1
call fcn.0041f670
mov ecx, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x430df5
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
push 0xe
lea eax, [ecx + eax*2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp byte [ebp - 0x28], 0
mov edi, eax
je 0x430e51
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x430e51
push dword [esi + 0x18]
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x430e38
push dword [esi]
call eax
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], cx
call eax
add esp, 4
test edi, edi
je 0x430f96
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x430f96
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x430f96
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 4]
jae 0x430f7a
lea esp, [esp]
movzx ecx, bx
lea eax, [ecx*8]
sub eax, ecx
cmp word [edi + eax*2 + 0xc], 0x20
lea esi, [edi + eax*2]
jne 0x430f6f
movzx eax, word [esi + 0x12]
push 3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430f6f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x430f6f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x430f6f
push 0x30000
push 1
push dword [esi + 0xe]
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x430f66
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.wxIcon.0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.005bd7a0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 0x2c]
movzx edi, byte [esi + 7]
movzx esi, byte [esi + 6]
call fcn.005bd7a0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x430f57
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.004c93f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00418250
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc ebx
cmp bx, word [edi + 4]
jb 0x430e90
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret