Function at 0x40f070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x419879
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x650
mov eax, dword [0x425640]
push ebp
push edi
mov edi, dword [esp + 0x668]
test edi, edi
mov ebp, ecx
mov dword [esp + 0x654], eax
mov dword [esp + 0x10], ebp
je 0x40f3ed
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x20]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
jle 0x40f3ec
push esi
lea esp, [esp]
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0x24]
mov esi, eax
test esi, esi
je 0x40f3da
test ebp, ebp
mov dword [esp + 0x20], esi
je 0x40f0ef
lea eax, [ebp + 0x54]
jmp 0x40f0f1
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp eax, 0xf
je 0x40f359
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea edi, [ebp + 0x6c]
push eax
mov ecx, edi
call fcn.0040ed10
mov ebx, dword [eax]
test ebx, ebx
je 0x40f1ee
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x5c]
mov ebp, eax
mov eax, dword [esp + 0x674]
push eax
push ebp
call fcn.00410990
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebp
call dword [edx + 4]
cmp eax, 6
jne 0x40f1c8
lea eax, [esp + 0x28]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.0040ed10
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
call dword [edx]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x5c]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.00410990
push str.Alpha
mov ecx, edi
call fcn.004116e0
push str.The_alpha_value_for_this_color_n255opaque__0transparent
mov ecx, edi
call fcn.00411720
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
add ecx, 0x78
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
call fcn.0040ede0
push 1
mov ecx, ebp
call fcn.004115f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
push esi
push ecx
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [ebx]
push esi
push ebp
mov ecx, ebx
call dword [edx + 8]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x670]
jmp 0x40f3b8
push 0x78
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x28], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x668], edi
je 0x40f212
mov ecx, eax
call fcn.00411480
jmp 0x40f214
xor eax, eax
mov ecx, dword [ebp + 0x5c]
push edi
push eax
mov dword [esp + 0x670], 0xffffffff
call fcn.00410990
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
lea edx, [esp + 0x5c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40f236
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
lea edx, [esp + 0x15c]
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40f250
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.base.dll_public:_static_class_ubi::Allocator____cdecl_ubi::Mem::GetGeneralAlloc_void_]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push 0x41bfb8
lea ecx, [esp + 0x48]
call fcn.00406cb0
mov edx, dword [esi]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x66c], 1
call dword [edx + 0x58]
mov eax, dword [esp + 0x58]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x44]
jae 0x40f2ab
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x264]
push str._s___s_
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x25c]
push eax
mov ecx, ebx
call fcn.004116e0
lea ecx, [esp + 0x15c]
push ecx
mov ecx, ebx
call fcn.00411720
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
movzx eax, al
push eax
mov ecx, ebx
call fcn.00411630
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
movzx eax, al
push eax
mov ecx, ebx
call fcn.00411650
cmp dword [esp + 0x58], edi
mov dword [esp + 0x668], 0xffffffff
jb 0x40f328
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x60], 0xf
mov byte [esp + 0x1f], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.MSVCP71.dll_public:_static_void___cdecl_std::char_traits_char_::assign_char___char_const__]
mov edi, dword [esp + 0x678]
add esp, 8
jmp 0x40f3b8
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x14], 0
call dword [eax + 0x64]
mov edx, dword [esp + 0x674]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, ebp
call fcn.0040db60
mov edx, dword [esi]
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
call dword [edx + 0x34]
movzx eax, al
push eax
mov ecx, ebx
call fcn.00411630
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
movzx eax, al
push eax
mov ecx, ebx
call fcn.00411650
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov ecx, ebp
call fcn.0040f070
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004115c0
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 0x78]
call fcn.0040ede0
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x24], ebx
jl 0x40f0d0
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x650]
pop ebp
call fcn.004177e1
add esp, 0x65c
ret 8