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

Disassembly:
push 0xffffffffffffffff
push 0x539c50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x300
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea eax, [ebx + 0x894]
push 0x573708
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x5c], ebx
call fcn.00519c4f
lea ecx, [esp + 0x3c]
mov dword [esp + 0x318], 0
call fcn.004733a0
mov edx, dword [0x599b98]
push 0x17
push 0x221
push edx
mov byte [esp + 0x324], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x404598
mov eax, dword [0x599b98]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404598
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404598
mov ecx, dword [0x599b98]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00473c60
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4045aa
push 0x5738ac
jmp 0x40463e
push 0
lea ecx, [esp + 0x40]
call fcn.004736e0
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
neg ebp
sbb ebp, ebp
push 0x5738a4
and ebp, edi
push ebp
call fcn.00502010
mov esi, eax
add esp, 8
test esi, esi
je 0x404639
lea ecx, [ebx + 0xc0]
call fcn.004504f0
push eax
call fcn.004de580
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
sub esi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x5738a4
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push ecx
push esi
lea ecx, [esp + 0x4c]
call fcn.00473cc0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edi, eax
push 0x573898
neg eax
sbb eax, eax
and eax, ecx
mov esi, eax
push esi
call fcn.00502010
add esp, 8
test eax, eax
jne 0x40465b
push 0x573884
call fcn.004dc5d0
add esp, 4
mov byte [esp + 0x318], 0
mov dword [esp + 0x3c], 0x54d7d0
jmp 0x404c13
sub eax, esi
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], eax
call fcn.00473490
lea ecx, [esp + 0x78]
call fcn.005185f1
lea ecx, [esp + 0x64]
mov byte [esp + 0x318], 2
call fcn.005185f1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x318], 3
call fcn.00518c55
lea ecx, [esp + 0xa0]
mov byte [esp + 0x318], 4
call fcn.00518a4f
lea edx, [ebx + 0x3f4]
lea ecx, [esp + 0x64]
push edx
mov byte [esp + 0x31c], 5
call fcn.0051882d
lea eax, [ebx + 0x408]
lea ecx, [esp + 0xa0]
push eax
call fcn.00518c02
mov esi, dword [ebx + 0x3fc]
xor edi, edi
test esi, esi
jle 0x4046fe
mov ecx, dword [esp + 0x94]
push edi
push ecx
lea ecx, [esp + 0x94]
call fcn.00518c2e
inc edi
cmp edi, esi
jl 0x4046e4
lea edx, [esp + 0x10]
push 0x573878
lea eax, [esp + 0x38]
push edx
push eax
call fcn.00519c4f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x318], 6
call fcn.004733a0
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x320], 7
call fcn.00473960
cmp eax, 8
jle 0x404913
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
cmp dword [eax], 0x65353428
jne 0x404913
push 0
lea ecx, [esp + 0x20]
call fcn.00473660
mov edx, dword [0x596a5c]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
neg eax
sbb eax, eax
mov byte [esp + 0x318], 8
and eax, ecx
lea edi, [eax + 4]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x4047aa
lea ecx, [ebx + 0xc0]
add edi, 4
call fcn.004504f0
cmp dword [edi], eax
jne 0x404902
mov al, byte [edi + 4]
add edi, 4
test al, al
je 0x404902
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
push edi
call fcn.004df8d0
add esp, 0x1c
test eax, eax
je 0x4048ee
lea ecx, [esp + 0x14]
push ecx
call fcn.004dec80
add esp, 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x58]
push 0x57347c
push edx
push eax
call fcn.00519c4f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x60]
push ecx
push eax
push edx
mov byte [esp + 0x324], 9
call fcn.00519be9
push 0x57386c
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x320], 0xa
push eax
call fcn.00519c4f
lea ecx, [esp + 0x60]
mov byte [esp + 0x318], 0xd
call fcn.00519a06
lea ecx, [esp + 0x58]
mov byte [esp + 0x318], 0xc
call fcn.00519a06
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004dea60
add esp, 4
test eax, eax
je 0x4048d9
mov eax, dword [esp + 0x80]
push edi
push eax
lea ecx, [esp + 0x80]
mov ebx, eax
call fcn.00518855
mov eax, dword [esp + 0x6c]
xor esi, esi
test eax, eax
mov ebp, eax
jle 0x4048d9
mov edx, dword [esp + 0x68]
mov eax, dword [edx + esi*4]
push eax
push edi
call fcn.004ddc40
add esp, 8
test eax, eax
jne 0x40489b
inc esi
cmp esi, ebp
jl 0x40487f
jmp 0x4048d9
cmp eax, 1
push 1
jne 0x4048cc
push esi
lea ecx, [esp + 0x6c]
call fcn.0051898a
push 1
push esi
lea ecx, [esp + 0xa8]
call fcn.00518d47
push 1
push esi
lea ecx, [esp + 0x94]
call fcn.00518d47
jmp 0x4048d9
push ebx
lea ecx, [esp + 0x80]
call fcn.0051898a
lea ecx, [esp + 0x54]
mov byte [esp + 0x318], 8
call fcn.00519a06
mov ebx, dword [esp + 0x50]
push edi
call fcn.00474320
add edi, eax
add esp, 4
cmp byte [edi], 0
jne 0x4047b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x318], 7
call fcn.00519a06
mov eax, dword [esp + 0x6c]
xor ebp, ebp
cmp eax, ebp
jle 0x404979
push ebp
lea ecx, [esp + 0xb8]
call fcn.0046b850
lea ecx, [esp + 0xa0]
lea eax, [esp + 0x64]
mov dword [esp + 0x114], ecx
lea edx, [esp + 0x8c]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x318], 0xe
mov dword [esp + 0x110], eax
mov dword [esp + 0x118], edx
call fcn.0051a4af
lea ecx, [esp + 0xb4]
mov byte [esp + 0x318], 7
call fcn.0051a0e5
push 0x65353428
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call fcn.00473660
push 2
lea ecx, [esp + 0x20]
call fcn.00473660
lea ecx, [ebx + 0xc0]
call fcn.004504f0
push eax
lea ecx, [esp + 0x20]
call fcn.00473660
mov eax, dword [esp + 0x80]
xor esi, esi
cmp eax, ebp
mov edi, eax
jle 0x4049d0
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + esi*4]
push eax
call fcn.00473710
inc esi
cmp esi, edi
jl 0x4049ba
mov edi, dword [esp + 0x6c]
xor esi, esi
cmp edi, ebp
jle 0x4049f0
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x1c]
push eax
call fcn.00473710
inc esi
cmp esi, edi
jl 0x4049da
push ebp
lea ecx, [esp + 0x20]
call fcn.00473660
push ebp
lea edx, [esp + 0x38]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x28]
call fcn.00473ab0
mov eax, dword [0x596a5c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
mov ebx, dword [ebx + 0x3fc]
push 0x573868
lea ecx, [esp + 0x20]
mov byte [esp + 0x31c], 0x10
call fcn.00473750
xor ebp, ebp
test ebx, ebx
jle 0x404ae4
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x38]
push 0
lea edi, [ebp*4]
mov eax, dword [esi + 0x3f8]
push ecx
push 0
push 0
mov eax, dword [edi + eax]
lea edx, [esp + 0x28]
push 0
push edx
push eax
call fcn.004df8d0
add esp, 0x1c
test eax, eax
je 0x404adb
mov eax, dword [esp + 0x50]
mov esi, dword [esi + 0x40c]
add esi, edi
lea ecx, [eax + 0xc0]
call fcn.004504f0
mov ecx, dword [esi]
push eax
push ecx
call fcn.004de630
add esp, 8
test eax, eax
je 0x404adb
lea edx, [esp + 0x18]
push edx
call fcn.004dec80
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [ebp + 1]
push ecx
push edx
lea eax, [esp + 0x12c]
push 0x573838
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00473750
inc ebp
cmp ebp, ebx
jl 0x404a42
push 0x573830
lea ecx, [esp + 0x20]
call fcn.00473750
lea edx, [esp + 0x10]
push 0x57386c
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00519c4f
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov edi, 0x573898
and eax, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x320], 0x11
push ecx
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00473cc0
push 0
lea edx, [esp + 0x34]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x48]
call fcn.00473ab0
mov eax, dword [esp + 0x30]
push 5
push eax
call fcn.0046b710
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x318], 0x10
call fcn.00519a06
lea ecx, [esp + 0x38]
mov byte [esp + 0x318], 0xf
call fcn.00519a06
lea ecx, [esp + 0x18]
mov byte [esp + 0x318], 7
call fcn.00519a06
mov esi, 0x54d7d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x318], 6
mov dword [esp + 0x1c], esi
call fcn.004735a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x318], 5
call fcn.00519a06
lea ecx, [esp + 0xa0]
mov byte [esp + 0x318], 4
call fcn.00518a82
lea ecx, [esp + 0x8c]
mov byte [esp + 0x318], 3
call fcn.00518c88
lea ecx, [esp + 0x64]
mov byte [esp + 0x318], 2
call fcn.00518624
lea ecx, [esp + 0x78]
mov byte [esp + 0x318], 1
call fcn.00518624
mov byte [esp + 0x318], 0
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
call fcn.004735a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x318], 0xffffffff
call fcn.00519a06
mov ecx, dword [esp + 0x310]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30c
ret