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

Disassembly:
push 0xffffffffffffffff
push 0x515882
mov eax, dword fs:[0]
push eax
sub esp, 0x750
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x748], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x764]
mov dword fs:[0], eax
mov eax, dword [esp + 0x774]
mov ebx, dword [esp + 0x784]
mov edi, dword [esp + 0x778]
mov esi, dword [esp + 0x77c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x2c4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], edx
mov dword [ebx + 0x248], 2
call fcn.0041dc00
lea eax, [esp + 0x2c4]
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x770], ebp
call fcn.0041fbf0
lea ecx, [esp + 0x19c]
call fcn.004174b0
mov eax, str.swfdownload
lea edx, [esp + 0x19c]
call fcn.00417710
lea ecx, [esp + 0x19c]
push ecx
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x770], 0
call fcn.0041e2f0
cmp byte [esp + 0x2b8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40fc46
mov eax, dword [esp + 0x1a4]
lea edx, [esp + 0x1a8]
cmp eax, edx
je 0x40fc46
push eax
call fcn.004ed7b6
add esp, 4
mov esi, dword [esp + 0x20]
push ebp
push esi
lea ecx, [esp + 0x2cc]
call fcn.0041f2b0
test al, al
jne 0x40fc63
mov ecx, esi
call fcn.00416480
mov eax, dword [esp + 0x28]
mov byte [eax], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], fcn.004ed893
mov dword [esp + 0x4c], fcn.004ee443
mov dword [esp + 0x50], fcn.004ed7b6
mov dword [esp + 0x54], ebp
mov byte [esp + 0x76c], 2
mov eax, dword [edi + 0x1c]
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x24], esi
jle 0x410021
mov dword [esp + 0x1c], ebp
jmp 0x40fcc0
lea ecx, [esp + 0x3f0]
mov dword [esp + 0x3ec], ebp
call fcn.004174b0
lea ecx, [esp + 0x514]
call fcn.004174b0
lea ecx, [esp + 0x638]
call fcn.004174b0
cmp esi, ebp
jl 0x40fe18
cmp esi, dword [edi + 0x1c]
jge 0x40fe18
mov eax, dword [edi]
add eax, dword [esp + 0x1c]
lea edi, [esp + 0x3ec]
call fcn.00406040
lea ecx, [esp + 0x70]
mov dword [esp + 0x6c], ebp
call fcn.004174b0
mov dword [esp + 0x194], ebp
mov byte [esp + 0x76c], 4
cmp byte [esp + 0x50c], 0
mov ecx, dword [esp + 0x3ec]
mov dword [esp + 0x6c], ecx
lea ebx, [esp + 0x3fc]
jne 0x40fd4d
mov ebx, dword [esp + 0x3f8]
add ebx, 4
cmp ebx, ebp
jne 0x40fd59
mov ebx, 0x544b54
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40fd60
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x78]
mov dword [esp + 0x74], eax
call fcn.00418590
cmp byte [esp + 0x18c], 0
lea eax, [esp + 0x7c]
jne 0x40fd93
mov eax, dword [esp + 0x78]
lea edx, [edi + edi]
push edx
add eax, 4
push ebx
push eax
call fcn.004f27f0
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp byte [esp + 0x18c], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x7c]
jne 0x40fdd0
mov eax, dword [esp + 0x78]
lea edi, [eax + 4]
lea ebx, [esp + 0x5c]
call fcn.004248a0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x58]
call fcn.0040e090
test al, al
jne 0x40fe31
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
add eax, 0x250
mov dword [esp + 0x198], 4
call fcn.00411680
mov dword [esp + 0x70], vtable.t_str.0
jmp 0x40ffca
lea eax, [esp + 0x3ec]
mov byte [esp + 0x76c], 2
call fcn.00406450
jmp 0x40ffff
cmp byte [esp + 0x630], 0
lea eax, [esp + 0x520]
jne 0x40fe49
mov eax, dword [esp + 0x51c]
add eax, 4
push eax
lea ecx, [esp + 0x1a0]
call fcn.004175e0
mov byte [esp + 0x76c], 5
cmp dword [esp + 0x1a0], 0
je 0x40ff62
mov esi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x2c8]
lea edi, [esp + 0x3f0]
call fcn.0040ee90
add esp, 4
test al, al
jne 0x40feaa
mov ecx, esi
call fcn.00416480
lea eax, [esp + 0x6c]
mov dword [esp + 0x194], 1
push eax
jmp 0x40ff87
cmp byte [esp + 0x754], 0
lea eax, [esp + 0x644]
jne 0x40fec2
mov eax, dword [esp + 0x640]
lea ecx, [eax + 4]
call fcn.004754b0
test eax, eax
jne 0x40ff4d
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x1c]
mov ebx, 2
add eax, 0x250
mov dword [esp + 0x198], ebx
call fcn.00411680
cmp byte [esp + 0x2b8], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x19c], esi
jne 0x40ff1e
mov eax, dword [esp + 0x1a4]
lea ecx, [esp + 0x1a8]
cmp eax, ecx
je 0x40ff1e
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x18c], 0
mov dword [esp + 0x70], esi
jne 0x40ff41
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x7c]
cmp eax, edx
je 0x40ff41
push eax
call fcn.004ed7b6
add esp, 4
mov byte [esp + 0x76c], bl
jmp 0x40fff1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov dword [esp + 0x194], 0
jmp 0x40ff6d
mov dword [esp + 0x194], 3
lea ecx, [esp + 0x3ec]
push ecx
lea eax, [esp + 0x3c]
call fcn.00406670
inc dword [esp + 0x54]
lea edx, [esp + 0x6c]
push edx
mov eax, dword [esp + 0x1c]
add eax, 0x250
call fcn.00411680
cmp byte [esp + 0x2b8], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x19c], esi
jne 0x40ffc6
mov eax, dword [esp + 0x1a4]
lea ecx, [esp + 0x1a8]
cmp eax, ecx
je 0x40ffc6
push eax
call fcn.004ed7b6
add esp, 4
mov dword [esp + 0x70], esi
cmp byte [esp + 0x18c], 0
jne 0x40ffe9
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x7c]
cmp eax, edx
je 0x40ffe9
push eax
call fcn.004ed7b6
add esp, 4
mov byte [esp + 0x76c], 2
lea eax, [esp + 0x3ec]
call fcn.00406450
xor ebp, ebp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add dword [esp + 0x1c], 0x370
inc esi
cmp esi, dword [edi + 0x1c]
mov dword [esp + 0x24], esi
jl 0x40fcc0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x780]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
mov dword [ebx + 0x248], 3
call fcn.0040f270
add esp, 0x10
cmp byte [esp + 0x3e0], 0
mov byte [esp + 0x17], al
lea eax, [esp + 0x2d0]
jne 0x41006a
mov eax, dword [esp + 0x2cc]
add eax, 4
push 1
push eax
call fcn.00421590
mov byte [esp + 0x774], 0
mov ebx, dword [esp + 0x40]
add esp, 8
cmp ebx, ebp
je 0x4100ac
mov edi, dword [esp + 0x3c]
cmp edi, ebp
jle 0x4100a4
mov esi, ebx
mov eax, esi
call fcn.00406450
add esi, 0x370
sub edi, 1
jne 0x410092
push ebx
call dword [esp + 0x54]
add esp, 4
cmp byte [esp + 0x3e0], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4100dc
mov eax, dword [esp + 0x2cc]
lea ecx, [esp + 0x2d0]
cmp eax, ecx
je 0x4100dc
push eax
call fcn.004ed7b6
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x764]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x748]
xor ecx, esp
call fcn.004ecddb
add esp, 0x75c
ret