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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f1bc
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.00461f67
mov ebp, dword [esp + 0x5fc]
cmp dword [ebp + 4], ebx
je 0x406383
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, ebx
jbe 0x406383
mov eax, dword [ebp + 4]
mov esi, dword [eax + edi*4]
cmp esi, ebx
je 0x40637b
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.0046046c
lea edx, [esi + 8]
push 1
push edx
call fcn.0046046c
mov esi, dword [esi]
cmp esi, ebx
jne 0x40635f
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jb 0x406355
mov eax, dword [ebp + 4]
push eax
call fcn.004635c4
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.0046235b
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.0044d8ca
lea ecx, [esp + 0x74]
push ecx
call fcn.0045fb38
lea edx, [esp + 0x78]
push str..txt
push edx
call fcn.00459170
add esp, 0x20
test eax, eax
jne 0x406409
mov eax, dword [esp + 0x600]
mov ecx, dword [esp + 0x5f4]
push eax
push ebp
push ecx
push esi
call fcn.00403030
jmp 0x4065c9
lea edx, [esp + 0x60]
push str..doc
push edx
call fcn.00459170
add esp, 8
test eax, eax
je 0x4065b2
lea eax, [esp + 0x60]
push str..rtf
push eax
call fcn.00459170
add esp, 8
test eax, eax
je 0x4065b2
lea ecx, [esp + 0x60]
push str..xls
push ecx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x40646f
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f4]
push edx
push ebp
push eax
push esi
call fcn.00403390
jmp 0x4065c9
lea ecx, [esp + 0x60]
push str..ppt
push ecx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4064a1
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f4]
push edx
push ebp
push eax
push esi
call fcn.00403860
jmp 0x4065c9
lea ecx, [esp + 0x60]
push str..pdf
push ecx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4064de
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.004047b0
add esp, 0x14
jmp 0x4065cc
lea edx, [esp + 0x60]
push 0x49cea4
push edx
call fcn.00459170
add esp, 8
test eax, eax
je 0x406599
lea eax, [esp + 0x60]
push str..ps2
push eax
call fcn.00459170
add esp, 8
test eax, eax
je 0x406599
lea ecx, [esp + 0x60]
push 0x49ce98
push ecx
call fcn.00459170
add esp, 8
test eax, eax
je 0x406599
lea edx, [esp + 0x60]
push str..s72
push edx
call fcn.00459170
add esp, 8
test eax, eax
je 0x406599
lea eax, [esp + 0x60]
push str..s92
push eax
call fcn.00459170
add esp, 8
test eax, eax
je 0x406599
lea ecx, [esp + 0x60]
push str..htm
push ecx
call fcn.00459170
add esp, 8
test eax, eax
je 0x406580
lea edx, [esp + 0x60]
push str..html
push edx
call fcn.00459170
add esp, 8
test eax, eax
jne 0x4065cc
mov eax, dword [esp + 0x600]
mov ecx, dword [esp + 0x5f4]
push eax
push ebp
push ecx
push esi
call fcn.00406220
jmp 0x4065c9
mov edx, dword [esp + 0x600]
mov eax, dword [esp + 0x5f4]
push edx
push ebp
push eax
push esi
call fcn.00406300
jmp 0x4065c9
mov ecx, dword [esp + 0x600]
mov edx, dword [esp + 0x5f4]
push ecx
push ebp
push edx
push esi
call fcn.00403050
add esp, 0x10
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0044e143
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.004605d0
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.004605d0
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.004605d0
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
push 0xa
push ecx
push edx
mov byte [esp + 0x5f4], 2
call fcn.004508e3
add esp, 0xc
lea eax, [esp + 0x160]
mov ecx, ebp
push eax
push 0x49ce58
call fcn.00406fd0
mov ecx, eax
call fcn.00463140
cmp dword [0x4aacd4], 1
jne 0x406695
lea ecx, [esp + 0x160]
push ecx
push str.title
mov ecx, ebp
call fcn.00406fd0
mov ecx, eax
call fcn.00463140
cmp byte [esp + 0x60], 0x2e
jne 0x4066b4
lea edx, [esp + 0x61]
mov ecx, ebp
push edx
push 0x49ce4c
call fcn.00406fd0
mov ecx, eax
call fcn.00463140
push esi
push 0x49ce40
mov ecx, ebp
call fcn.00406fd0
mov ecx, eax
call fcn.00463140
lea eax, [esp + 0x4c]
mov ecx, ebp
push eax
push 0x49ce34
call fcn.00406fd0
mov ecx, eax
call fcn.00463140
mov ecx, dword [esp + 0x20]
push ecx
push 0x49ce28
mov ecx, ebp
call fcn.00406fd0
mov ecx, eax
call fcn.00463140
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0x49ce1c
mov ecx, ebp
call fcn.004070e0
mov esi, eax
cmp esi, ebx
jne 0x406758
cmp dword [ebp + 4], ebx
jne 0x406725
mov eax, dword [ebp + 8]
push 1
push eax
mov ecx, ebp
call fcn.00437ec0
mov ecx, ebp
call fcn.00407260
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0x49ce1c
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
call fcn.00463140
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.00463140
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x49ce10
mov ecx, ebp
call fcn.004070e0
mov esi, eax
cmp esi, ebx
jne 0x4067c1
cmp dword [ebp + 4], ebx
jne 0x40678e
mov edx, dword [ebp + 8]
push 1
push edx
mov ecx, ebp
call fcn.00437ec0
mov ecx, ebp
call fcn.00407260
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x49ce10
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call fcn.00463140
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.00463140
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 0x49ce04
mov ecx, ebp
call fcn.004070e0
mov esi, eax
cmp esi, ebx
jne 0x406856
cmp dword [ebp + 4], ebx
jne 0x406823
mov ecx, dword [ebp + 8]
push 1
push ecx
mov ecx, ebp
call fcn.00437ec0
mov ecx, ebp
call fcn.00407260
mov edx, dword [esp + 0x10]
mov esi, eax
push 0x49ce04
lea ecx, [esi + 8]
mov dword [esi + 4], edx
call fcn.00463140
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.00463140
mov eax, dword [0x4a624c]
mov dword [esp + 0x14], eax
push str.title
mov byte [esp + 0x5ec], 3
call fcn.00460490
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x4068c2
mov esi, dword [eax + edx*4]
cmp esi, ebx
je 0x4068c2
mov eax, dword [esi + 8]
push str.title
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4068b1
mov esi, dword [esi]
cmp esi, ebx
jne 0x406894
jmp 0x4068c2
cmp esi, ebx
je 0x4068c2
add esi, 0xc
lea ecx, [esp + 0x14]
push esi
call fcn.004630f0
mov ecx, dword [esp + 0x14]
push 0x4aa680
push ecx
call fcn.0044d292
add esp, 8
test eax, eax
jne 0x406a82
mov eax, dword [esp + 0x5f4]
cmp dword [eax + 8], ebx
jle 0x406a82
mov edx, dword [eax + 4]
push 0x49ce00
mov eax, dword [edx]
push eax
call fcn.0044d7eb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40697b
test byte [esi + 0xc], 0x10
jne 0x406972
push esi
lea eax, [esp + 0x264]
push 0xff
push eax
mov byte [esp + 0x26c], 0
call fcn.0044e5a6
add esp, 0xc
lea ecx, [esp + 0x260]
push ecx
lea ecx, [esp + 0x18]
call fcn.00463140
push str.__t_r_n
lea ecx, [esp + 0x18]
call fcn.004603d6
push str.__t_r_n
lea ecx, [esp + 0x18]
call fcn.00460383
mov edx, dword [esp + 0x14]
push 0x4aa680
push edx
call fcn.0044d292
add esp, 8
test eax, eax
jne 0x406972
test byte [esi + 0xc], 0x10
je 0x40690b
push esi
call fcn.0044d6ef
add esp, 4
mov eax, dword [esp + 0x14]
push str.title
mov dword [esp + 0x14], eax
call fcn.00460490
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 4]
test eax, eax
mov ebx, edx
je 0x4069c7
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x4069c7
mov eax, dword [esi + 8]
push str.title
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x4069bf
mov esi, dword [esi]
test esi, esi
jne 0x4069a2
jmp 0x4069c7
test esi, esi
jne 0x406a75
mov eax, dword [ebp + 4]
test eax, eax
jne 0x4069fd
mov esi, dword [ebp + 8]
lea edi, [esi*4]
push edi
call fcn.0046359b
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 0x406a33
mov eax, dword [ebp + 0x18]
push 0x10
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0046233b
mov ecx, dword [ebp + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x406a33
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x406a25
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.0046043e
lea ecx, [esi + 0xc]
push 1
push ecx
call fcn.0046043e
push str.title
mov ecx, edi
mov dword [esi + 4], ebx
call fcn.00463140
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.00463140
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e8], 2
call fcn.00462fb7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e8], 1
call fcn.00462fb7
lea ecx, [esp + 0x24]
mov byte [esp + 0x5e8], 0
call fcn.00462fb7
lea ecx, [esp + 0x20]
mov dword [esp + 0x5e8], 0xffffffff
call fcn.00462fb7
mov ecx, dword [esp + 0x5e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5dc
ret