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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48a51c
push eax
mov dword fs:[0], esp
sub esp, 0x5d0
mov ecx, dword [esp + 0x5e4]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 1
push ebx
call fcn.0046d703
mov ebp, dword [esp + 0x5fc]
cmp dword [ebp + 4], ebx
je 0x405d13
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, ebx
jbe 0x405d13
mov eax, dword [ebp + 4]
mov esi, dword [eax + edi*4]
cmp esi, ebx
je 0x405d0b
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.0046bc08
lea edx, [esi + 8]
push 1
push edx
call fcn.0046bc08
mov esi, dword [esi]
cmp esi, ebx
jne 0x405cef
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jb 0x405ce5
mov eax, dword [ebp + 4]
push eax
call fcn.00473336
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.0046da9c
mov esi, dword [esp + 0x5f0]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x160]
push eax
lea edx, [esp + 0x3e4]
push ecx
lea eax, [esp + 0x368]
push edx
push eax
push esi
mov dword [ebp + 0x14], ebx
call fcn.0045887a
lea ecx, [esp + 0x74]
push ecx
call fcn.0046b308
lea edx, [esp + 0x78]
push str..txt
push edx
call fcn.004646f0
add esp, 0x20
test eax, eax
jne 0x405d99
mov eax, dword [esp + 0x600]
mov ecx, dword [esp + 0x5f4]
push eax
push ebp
push ecx
push esi
call fcn.00403140
jmp 0x405f59
lea edx, [esp + 0x60]
push str..doc
push edx
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f42
lea eax, [esp + 0x60]
push str..rtf
push eax
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f42
lea ecx, [esp + 0x60]
push str..xls
push ecx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405dff
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f4]
push edx
push ebp
push eax
push esi
call fcn.004034a0
jmp 0x405f59
lea ecx, [esp + 0x60]
push str..ppt
push ecx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405e31
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f4]
push edx
push ebp
push eax
push esi
call fcn.00403960
jmp 0x405f59
lea ecx, [esp + 0x60]
push str..pdf
push ecx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405e6e
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f8]
mov ecx, dword [esp + 0x5f4]
push edx
push ebp
push eax
push ecx
push esi
call fcn.004048a0
add esp, 0x14
jmp 0x405f5c
lea edx, [esp + 0x60]
push 0x4afdc0
push edx
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f29
lea eax, [esp + 0x60]
push str..ps2
push eax
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f29
lea ecx, [esp + 0x60]
push 0x4afdb4
push ecx
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f29
lea edx, [esp + 0x60]
push str..s72
push edx
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f29
lea eax, [esp + 0x60]
push str..s92
push eax
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f29
lea ecx, [esp + 0x60]
push str..htm
push ecx
call fcn.004646f0
add esp, 8
test eax, eax
je 0x405f10
lea edx, [esp + 0x60]
push str..html
push edx
call fcn.004646f0
add esp, 8
test eax, eax
jne 0x405f5c
mov eax, dword [esp + 0x600]
mov ecx, dword [esp + 0x5f4]
push eax
push ebp
push ecx
push esi
call fcn.00405bc0
jmp 0x405f59
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f4]
push edx
push ebp
push eax
push esi
call fcn.00405c90
jmp 0x405f59
mov ecx, dword [esp + 0x600]
mov edx, dword [esp + 0x5f4]
push ecx
push ebp
push edx
push esi
call fcn.00403160
add esp, 0x10
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004590f3
mov ecx, dword [esp + 0x4c]
add esp, 8
lea edx, [esp + 0x20]
mov dword [esp + 0x18], ecx
push str._Y__m__d__H__M__S
push edx
lea ecx, [esp + 0x20]
call fcn.0046bd6c
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push str._Y__m__d__H__M__S
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x5f0], ebx
mov dword [esp + 0x20], eax
call fcn.0046bd6c
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push str._Y__m__d__H__M__S
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5f0], 1
mov dword [esp + 0x20], edx
call fcn.0046bd6c
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
push 0xa
push ecx
push edx
mov byte [esp + 0x5f4], 2
call fcn.0045ac5b
add esp, 0xc
lea eax, [esp + 0x160]
mov ecx, ebp
push eax
push 0x4afd74
call fcn.00406960
mov ecx, eax
call fcn.0046e8dc
cmp dword [0x4c00a0], 1
jne 0x406025
lea ecx, [esp + 0x160]
push ecx
push str.title
mov ecx, ebp
call fcn.00406960
mov ecx, eax
call fcn.0046e8dc
cmp byte [esp + 0x60], 0x2e
jne 0x406044
lea edx, [esp + 0x61]
mov ecx, ebp
push edx
push 0x4afd68
call fcn.00406960
mov ecx, eax
call fcn.0046e8dc
push esi
push 0x4afd5c
mov ecx, ebp
call fcn.00406960
mov ecx, eax
call fcn.0046e8dc
lea eax, [esp + 0x4c]
mov ecx, ebp
push eax
push 0x4afd50
call fcn.00406960
mov ecx, eax
call fcn.0046e8dc
mov ecx, dword [esp + 0x20]
push ecx
push 0x4afd44
mov ecx, ebp
call fcn.00406960
mov ecx, eax
call fcn.0046e8dc
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0x4afd38
mov ecx, ebp
call fcn.00406a70
mov esi, eax
cmp esi, ebx
jne 0x4060e8
cmp dword [ebp + 4], ebx
jne 0x4060b5
mov eax, dword [ebp + 8]
push 1
push eax
mov ecx, ebp
call fcn.00406bf0
mov ecx, ebp
call fcn.00406c60
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0x4afd38
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
call fcn.0046e8dc
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
mov dword [esi], ecx
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x10]
mov dword [edx + eax*4], esi
push edi
lea ecx, [esi + 0xc]
call fcn.0046e8dc
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x4afd2c
mov ecx, ebp
call fcn.00406a70
mov esi, eax
cmp esi, ebx
jne 0x406151
cmp dword [ebp + 4], ebx
jne 0x40611e
mov edx, dword [ebp + 8]
push 1
push edx
mov ecx, ebp
call fcn.00406bf0
mov ecx, ebp
call fcn.00406c60
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x4afd2c
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call fcn.0046e8dc
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx*4]
mov dword [esi], eax
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x10]
mov dword [ecx + edx*4], esi
push edi
lea ecx, [esi + 0xc]
call fcn.0046e8dc
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x160]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x4afd20
mov ecx, ebp
call fcn.00406a70
mov esi, eax
cmp esi, ebx
jne 0x4061e6
cmp dword [ebp + 4], ebx
jne 0x4061b3
mov ecx, dword [ebp + 8]
push 1
push ecx
mov ecx, ebp
call fcn.00406bf0
mov ecx, ebp
call fcn.00406c60
mov edx, dword [esp + 0x10]
mov esi, eax
push 0x4afd20
lea ecx, [esi + 8]
mov dword [esi + 4], edx
call fcn.0046e8dc
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov dword [esi], edx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov dword [eax + ecx*4], esi
lea edx, [esp + 0x160]
lea ecx, [esi + 0xc]
push edx
call fcn.0046e8dc
mov eax, dword [0x4bb604]
mov dword [esp + 0x14], eax
push str.title
mov byte [esp + 0x5ec], 3
call fcn.0046bc2c
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x406252
mov esi, dword [eax + edx*4]
cmp esi, ebx
je 0x406252
mov eax, dword [esi + 8]
push str.title
push eax
call fcn.00458301
add esp, 8
test eax, eax
je 0x406241
mov esi, dword [esi]
cmp esi, ebx
jne 0x406224
jmp 0x406252
cmp esi, ebx
je 0x406252
add esi, 0xc
lea ecx, [esp + 0x14]
push esi
call fcn.0046e88c
mov ecx, dword [esp + 0x14]
push 0x4bfab8
push ecx
call fcn.00458301
add esp, 8
test eax, eax
jne 0x406412
mov eax, dword [esp + 0x5f4]
cmp dword [eax + 8], ebx
jle 0x406412
mov edx, dword [eax + 4]
push 0x4afd1c
mov eax, dword [edx]
push eax
call fcn.0045879b
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40630b
test byte [esi + 0xc], 0x10
jne 0x406302
push esi
lea eax, [esp + 0x264]
push 0xff
push eax
mov byte [esp + 0x26c], 0
call fcn.00459556
add esp, 0xc
lea ecx, [esp + 0x260]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046e8dc
push str.__t_r_n
lea ecx, [esp + 0x18]
call fcn.0046bb72
push str.__t_r_n
lea ecx, [esp + 0x18]
call fcn.0046bb1f
mov edx, dword [esp + 0x14]
push 0x4bfab8
push edx
call fcn.00458301
add esp, 8
test eax, eax
jne 0x406302
test byte [esi + 0xc], 0x10
je 0x40629b
push esi
call fcn.0045869f
add esp, 4
mov eax, dword [esp + 0x14]
push str.title
mov dword [esp + 0x14], eax
call fcn.0046bc2c
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 4]
test eax, eax
mov ebx, edx
je 0x406357
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x406357
mov eax, dword [esi + 8]
push str.title
push eax
call fcn.00458301
add esp, 8
test eax, eax
je 0x40634f
mov esi, dword [esi]
test esi, esi
jne 0x406332
jmp 0x406357
test esi, esi
jne 0x406405
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40638d
mov esi, dword [ebp + 8]
lea edi, [esi*4]
push edi
call fcn.0047330d
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4063c3
mov eax, dword [ebp + 0x18]
push 0x10
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0046da7c
mov ecx, dword [ebp + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x4063c3
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x4063b5
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
inc edi
push 1
mov eax, dword [esi]
mov dword [ebp + 0xc], edi
lea edi, [esi + 8]
mov dword [ebp + 0x10], eax
push edi
call fcn.0046bbda
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.0046bbda
push str.title
mov ecx, edi
mov dword [esi + 4], ebx
call fcn.0046e8dc
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov dword [esi], eax
mov ecx, dword [ebp + 4]
mov dword [ecx + ebx*4], esi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xc]
push edx
call fcn.0046e8dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e8], 2
call fcn.0046e753
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e8], 1
call fcn.0046e753
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e8], 0
call fcn.0046e753
lea ecx, [esp + 0x20]
mov dword [esp + 0x5e8], 0xffffffff
call fcn.0046e753
mov ecx, dword [esp + 0x5e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5dc
ret