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

Disassembly:
push 0xffffffffffffffff
push 0x4e47be
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x3a0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3e8]
mov ebp, ecx
mov dword [esp + 0x1c], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x3a8], edi
je 0x40d946
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x40d946
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
jmp 0x40d948
xor eax, eax
mov ecx, dword [esp + 0x3e4]
mov edx, dword [esp + 0x3e0]
mov bx, word [esp + 0x3b0]
push ecx
mov ecx, dword [esp + 0x3e0]
push edx
mov edx, dword [esp + 0x3c4]
push ecx
mov ecx, dword [esp + 0x3c4]
push eax
mov eax, dword [esp + 0x3c4]
push edx
push eax
push ecx
movzx edx, bx
push edx
push str.DownloadFile:_File__d:_d__FileIndex__d__BillNo__d__DS__d__CDNDown:__d__CompCode:__d__SvcCode:__d
push ebp
call fcn.00418e60
add esp, 0x28
cmp esi, edi
je 0x40daa2
mov eax, dword [esi + 4]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x40daa2
mov ecx, dword [esi + 8]
mov edx, ecx
sub edx, eax
sar edx, 2
je 0x40daa2
cmp eax, ecx
jbe 0x40d9c7
call fcn.004c000c
mov eax, dword [esp + 0x14]
mov edi, eax
lea esp, [esp]
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x14], eax
jbe 0x40d9e5
call fcn.004c000c
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x40daa0
cmp edi, dword [esi + 8]
jb 0x40da15
call fcn.004c000c
cmp edi, dword [esi + 8]
jb 0x40da15
call fcn.004c000c
cmp edi, dword [esi + 8]
jb 0x40da15
call fcn.004c000c
cmp edi, dword [esi + 8]
jb 0x40da15
call fcn.004c000c
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov esi, dword [eax]
add eax, 0xc
push eax
mov word [esp + 0x2a], bx
mov ebx, dword [esp + 0x3bc]
lea eax, [esp + 0x3c]
push 0x10
push eax
mov byte [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
call fcn.004c0258
mov ecx, dword [ebp + 0x3c]
add esp, 0xc
test ecx, ecx
je 0x40da82
push 2
call fcn.00417a20
cmp eax, 0xfffffffe
je 0x40da6a
test eax, eax
jl 0x40da82
mov edx, dword [ebp + 4]
push 0x34
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x38]
push 0x25
push 2
push eax
push edx
call fcn.004175b0
mov esi, dword [esp + 0x1c]
cmp edi, dword [esi + 8]
jb 0x40da90
call fcn.004c000c
mov bx, word [esp + 0x3b0]
add edi, 4
jmp 0x40d9d0
xor edi, edi
mov eax, dword [esp + 0x3b4]
mov ecx, dword [esp + 0x3b8]
mov edx, dword [esp + 0x3bc]
mov esi, 8
cmp dword [esp + 0x3d8], esi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c4]
mov byte [esp + 0x58], 1
mov dword [esp + 0x5a], edi
mov dword [esp + 0x386], edi
mov dword [esp + 0x38a], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov word [esp + 0x78], di
mov byte [esp + 0x280], 0
mov word [esp + 0x384], di
mov dword [esp + 0x38e], edi
mov dword [esp + 0x392], edi
mov dword [esp + 0x396], edi
mov byte [esp + 0x39a], 0
mov word [esp + 0x5e], bx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x74], 1
mov dword [esp + 0x18], edi
jae 0x40db41
lea eax, [esp + 0x3c4]
push 0x208
push eax
push 0x104
lea eax, [esp + 0x28c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004c1382
mov ecx, dword [esp + 0x3f8]
mov edx, dword [esp + 0x3f0]
mov eax, dword [esp + 0x3f4]
mov dword [esp + 0x39e], ecx
mov ecx, dword [ebp + 0x3c]
add esp, 0x14
cmp ecx, edi
mov dword [esp + 0x392], edi
mov dword [esp + 0x38e], edi
mov dword [esp + 0x396], edx
mov dword [esp + 0x386], eax
je 0x40dbcb
push 2
call fcn.00417a20
cmp eax, 0xfffffffe
je 0x40dbb0
cmp eax, edi
jl 0x40dbcb
mov ecx, dword [ebp + 0x38]
push 0x344
lea edx, [esp + 0x5c]
push edx
push 0x32
push 2
push eax
mov eax, dword [ebp + 4]
push eax
call fcn.004175b0
cmp dword [esp + 0x3d8], esi
jb 0x40dbe4
mov ecx, dword [esp + 0x3c4]
push ecx
call fcn.004aef39
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x398
ret 0x3c