Function at 0x40b990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7759
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x50738c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.0041ddf0
mov byte [ebp - 4], 1
push 0x74
lea ecx, [ebp - 0xe4]
call fcn.00401b60
lea ecx, [ebp - 0xe4]
call fcn.00415f10
mov byte [ebp - 4], 2
push 0x18
lea ecx, [ebp - 0x28]
call fcn.00401b60
push 0
lea ecx, [ebp - 0x28]
call fcn.00411cc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00402060
movzx eax, al
test eax, eax
jne 0x40bcb9
push 1
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0xe4]
call fcn.00416090
movzx eax, al
test eax, eax
je 0x40bcb9
lea ecx, [ebp - 0x13c]
push ecx
push str.downloadUrl
lea ecx, [ebp - 0x28]
call fcn.00413160
mov ecx, eax
call fcn.00412020
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x104]
lea ecx, [ebp - 0x70]
call fcn.0041ddc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x13c]
call fcn.00402340
lea eax, [ebp - 0x154]
push eax
push str.pkgFileType
lea ecx, [ebp - 0x28]
call fcn.00413160
mov ecx, eax
call fcn.00412020
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x10c]
lea ecx, [ebp - 0x58]
call fcn.0041ddc0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x154]
call fcn.00402340
push str.dialogOpen
lea ecx, [ebp - 0x28]
call fcn.00413160
mov ecx, eax
call fcn.004125a0
mov byte [ebp - 0xe5], al
push 0x7c
call fcn.004b3f75
add esp, 4
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
je 0x40bb20
mov ecx, dword [ebp - 0xf0]
call fcn.00405b80
mov dword [ebp - 0xf4], eax
jmp 0x40bb2a
mov dword [ebp - 0xf4], 0
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xec], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xec]
add ecx, 4
call fcn.00402140
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0xec]
add ecx, 0x64
call fcn.00402140
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
movzx edx, byte [ebp - 0xe5]
test edx, edx
jne 0x40bbe5
push 0
push 0
mov eax, dword [ebp - 0xec]
push eax
push 0x408eb0
push 0
push 0
call fcn.004b9dcb
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004021b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004021b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00411f10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.00403970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004021b0
jmp 0x40bcef
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00403c30
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
push ecx
call fcn.00403560
add esp, 0x1c
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
cmp dword [ebp - 0x114], 2
jne 0x40bc61
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.BUTTON_DOWNLOAD_CONTINUE
call fcn.00406030
call fcn.00407fa0
add esp, 0x18
push 0
push 0
mov eax, dword [ebp - 0xec]
push eax
push 0x408eb0
push 0
push 0
call fcn.004b9dcb
add esp, 0x18
jmp 0x40bca1
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 0
je 0x40bc97
push 1
mov ecx, dword [ebp - 0xfc]
call fcn.00405130
mov dword [ebp - 0x11c], eax
jmp 0x40bca1
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004021b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004021b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00411f10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.00403970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004021b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f64
mov esp, ebp
pop ebp
ret 0x18