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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x422414]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 6
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
lea ecx, [esp + 0x124]
call fcn.0040781a
mov eax, dword [esp + 0x190]
or eax, dword [esp + 0x194]
je 0x4011c6
cmp dword [esp + 0x134], edi
je 0x4011c6
lea eax, [esp + 0x120]
call fcn.0040102b
cmp dword [eax + 0x14], edi
je 0x4011c6
cmp dword [esp + 0x16c], edi
je 0x4011c6
cmp dword [esp + 0x188], edi
je 0x4011c6
cmp dword [esp + 0x1c8], edi
je 0x4011c6
cmp dword [esp + 0x1e4], edi
jne 0x401214
push str.http:___s_downloadhelperxmlnotfound.jsp
lea esi, [esp + 0x58]
call fcn.00401610
mov eax, esi
push eax
lea eax, [esp + 0x3c]
call fcn.00401000
cmp dword [eax + 0x18], 8
jb 0x4011eb
mov eax, dword [eax + 4]
jmp 0x4011ee
add eax, 4
push edi
mov esi, eax
call fcn.00404bc4
pop ecx
push edi
push 1
lea esi, [esp + 0x40]
call fcn.00401894
push edi
push 1
lea esi, [esp + 0x5c]
call fcn.00401894
jmp 0x4014c2
call fcn.00407f01
mov edi, eax
lea ecx, [esp + 0x120]
mov ebx, edi
call fcn.00407fef
lea eax, [esp + 0x120]
call fcn.0040102b
push esi
mov ecx, eax
lea ebx, [esp + 0xac]
call fcn.0040a49e
xor ebx, ebx
lea esi, [esp + 0xa8]
mov byte [esp + 0xdd], bl
call fcn.00406423
cmp byte [esp + 0xfc], bl
je 0x4014b5
cmp byte [esp + 0xfd], bl
je 0x4013e9
lea ecx, [esp + 0x38]
call fcn.00405813
cmp dword [esp + 0x4c], ebx
je 0x4012bb
cmp dword [esp + 0x50], 8
mov ecx, dword [esp + 0x3c]
jae 0x401291
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x54]
call fcn.00401123
cmp dword [eax + 0x18], 0x10
jb 0x4012a5
mov eax, dword [eax + 4]
jmp 0x4012a8
add eax, 4
push eax
call fcn.0040417e
pop ecx
push ebx
push 1
lea ecx, [esp + 0x5c]
call fcn.004021ae
lea esi, [esp + 0x38]
jmp 0x4013e1
cmp dword [edi + 0xa8], ebx
jne 0x401401
or dword [esp + 0x14], 1
lea ecx, [esp + 0x38]
mov eax, edi
call fcn.0040104a
cmp dword [eax + 0x14], ebx
je 0x4012fe
or dword [esp + 0x14], 2
lea ecx, [esp + 0x54]
mov eax, edi
call fcn.00401062
mov byte [esp + 0x13], bl
cmp dword [eax + 0x14], ebx
jne 0x401303
mov byte [esp + 0x13], 1
test byte [esp + 0x14], 2
je 0x40131b
and dword [esp + 0x14], 0xfffffffd
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00401894
test byte [esp + 0x14], 1
je 0x401333
and dword [esp + 0x14], 0xfffffffe
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.00401894
cmp byte [esp + 0x13], bl
je 0x40136f
lea eax, [esp + 0x120]
call fcn.0040102b
push dword [esp + 0x18]
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.00408f07
lea esi, [esp + 0x70]
call fcn.00406423
mov ecx, esi
mov dword [esp + 0x70], 0x41e898
call fcn.00406403
jmp 0x4013e9
push 7
pop eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], eax
xor eax, eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x38]
push eax
xor ecx, ecx
lea eax, [esp + 0x58]
mov word [esp + 0x5c], cx
push eax
lea ecx, [esp + 0x78]
mov eax, edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x54], ebx
call fcn.00401062
push eax
lea ecx, [esp + 0x28]
mov eax, edi
call fcn.0040104a
push eax
mov eax, edi
call fcn.004083f2
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.00401894
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00401894
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.00401894
lea esi, [esp + 0x54]
push ebx
push 1
call fcn.00401894
cmp byte [edi + 0x241], bl
je 0x4012c4
cmp dword [edi + 0xa8], ebx
je 0x4014b5
lea eax, [esp + 0x120]
call fcn.0040102b
mov esi, eax
lea ecx, [esp + 0x70]
lea eax, [esp + 0xa8]
call fcn.0040107a
lea ecx, [esp + 0x104]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004050cc
pop ecx
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00401894
push dword [esp + 0x194]
lea eax, [esp + 0x178]
push dword [esp + 0x194]
add edi, 0x94
push eax
push edi
lea ecx, [esp + 0x80]
lea eax, [esp + 0xb8]
call fcn.0040107a
push eax
lea eax, [esp + 0x118]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x294]
push eax
call fcn.004090fc
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00401894
lea esi, [esp + 0x278]
call fcn.00406423
mov ecx, esi
call fcn.0040925e
push ebx
push 1
lea esi, [esp + 0x10c]
call fcn.00401894
lea eax, [esp + 0xa8]
push eax
call fcn.004015cb
lea eax, [esp + 0x120]
push eax
call fcn.004014e8
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040af0b
mov esp, ebp
pop ebp
ret 0x10