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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5cc
or dword [esp + 4], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 0x14]
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
pop ebx
push ebx
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x461858
mov eax, str.DOC_Append
call fcn.005362d8
mov esi, dword [ebp + 0xc]
mov dword [esi], ebx
cmp dword [esp + 0x10], 0xffffffff
je 0x461851
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x461f2c
push ebx
push edi
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21]
cmp eax, edi
je 0x46183b
lea esi, [esp + 0x28]
call fcn.00467e31
mov eax, esi
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.0045aec7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x4618b4
mov esi, dword [ebp + 0xc]
mov dword [esi], 1
push dword [esp + 0x59]
call fcn.005f858a
pop ecx
push dword [esp + 0x4d]
call fcn.005f858a
pop ecx
jmp 0x461840
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d]
lea edi, [esp + 0x80]
call fcn.0045a7cf
mov eax, esi
call fcn.0045fd04
test al, al
je 0x4618e1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0045b231
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax]
test al, al
lea eax, [esp + 0x84]
je 0x461904
mov esi, dword [ebp + 0xc]
push eax
mov dword [esi], 1
call fcn.0050c473
jmp 0x46189e
and word [esp + 0x380], 0
push 0x63c4cc
call fcn.0050c6f6
test al, al
je 0x461949
push 0x41
xor ecx, ecx
pop eax
mov edx, 0x643792
cmp ecx, 0x103
jae 0x461940
mov word [esp + ecx*2 + 0x380], ax
movzx eax, word [edx]
inc ecx
add edx, ebx
test ax, ax
jne 0x461925
and word [esp + ecx*2 + 0x380], 0
lea eax, [esp + 0x380]
push eax
lea eax, [esp + 0x88]
lea edi, [esp + 0x12c]
call fcn.0045a80d
push 0x63c4cc
lea eax, [esp + 0x88]
call fcn.0050c6f6
test al, al
je 0x461986
lea eax, [esp + 0x334]
push eax
call fcn.00410600
lea eax, [esp + 0x14]
xor edi, edi
push eax
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00461712
cmp dword [esi], edi
jne 0x4619ad
cmp dword [esi + 4], edi
jne 0x4619ad
cmp dword [esi + 8], edi
je 0x461a06
push 0x630474
lea eax, [esp + 0x88]
lea edi, [esp + 0x384]
call fcn.0045a80d
lea eax, [esi + 4]
xor edi, edi
push eax
inc edi
push esi
mov dword [esi + 0xc], edi
call fcn.00472d93
lea eax, [esi + 8]
push eax
push esi
call fcn.00472d93
push edi
lea eax, [esp + 0x590]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004bc6de
lea eax, [esp + 0x58c]
push eax
call fcn.0050c473
mov edi, dword [esi + 0x469]
test edi, edi
je 0x461b21
and dword [esp + 0x74], 0
cmp byte [edi + 0xa1], 0
je 0x461a66
or dword [esp + 0x20], 1
mov eax, dword [esi + 8]
xor edx, edx
jmp 0x461a3f
mov ecx, dword [eax + 0x10]
cmp ecx, edx
je 0x461a3d
mov ecx, dword [ecx + 8]
cmp ecx, dword [edi + 8]
je 0x461a56
mov eax, dword [eax]
cmp eax, edx
jne 0x461a2e
or dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], edx
lea eax, [esp + 0x68]
jmp 0x461a79
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
jmp 0x461a4c
or dword [esp + 0x20], ebx
push edi
lea eax, [esp + 0xd8]
push eax
push esi
call fcn.00472c91
test byte [esp + 0x20], bl
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
je 0x461a92
and dword [esp + 0x20], 0xfffffffd
test byte [esp + 0x20], 1
je 0x461a9e
and dword [esp + 0x20], 0xfffffffe
mov eax, edi
call fcn.004719b2
test al, al
jne 0x461ab6
lea eax, [esp + 0x74]
call fcn.0051cf09
test al, al
je 0x461b17
cmp byte [edi + 0xa1], 0
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
je 0x461af9
push edi
call fcn.00471a39
test al, al
jne 0x461b08
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461be6
mov eax, edi
call fcn.00471d25
test al, al
je 0x461bf3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x461c26
mov edi, dword [edi]
test edi, edi
jne 0x461a19
lea eax, [esi + 0x68d]
push eax
mov ecx, esi
call fcn.0045c576
test al, al
je 0x461b8d
push str.Outlines
lea eax, [esp + 0x88]
lea edi, [esp + 0x384]
call fcn.0045a80d
lea eax, [esp + 0x58c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0045c5ea
mov eax, edi
call fcn.0045a93f
test al, al
je 0x461b80
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
push eax
call fcn.004ab04e
lea eax, [esp + 0x58c]
push eax
call fcn.0050c473
lea eax, [esp + 0x334]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0045b496
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x461c77
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], 1
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461c6a
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461bd9
jmp 0x461eeb
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461c19
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461c0c
jmp 0x461eeb
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], 1
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461c50
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461c43
jmp 0x461eeb
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461c5d
jmp 0x461eeb
push 0x63c4cc
lea eax, [esp + 0x88]
call fcn.0050c6f6
test al, al
je 0x461cb3
lea eax, [esp + 0x128]
call fcn.0045a93f
test al, al
je 0x461cb3
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.004ab04e
lea eax, [esp + 0x80]
call fcn.0045a7ec
test al, al
je 0x461cd9
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x88]
call fcn.004ab3aa
mov eax, esi
call fcn.00461378
test al, al
lea eax, [esp + 0x10]
push eax
je 0x461d2d
lea edi, [esp + 0x2c]
call fcn.004aba4b
test al, al
jne 0x461de2
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461d20
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461d13
jmp 0x461eeb
lea esi, [esp + 0x2c]
call fcn.004abdf6
test al, al
jne 0x461d6d
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461d60
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461d53
jmp 0x461eeb
push dword [esp + 0x28]
lea esi, [esp + 0xe4]
call fcn.0050c452
mov eax, esi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00468170
mov eax, esi
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004ac46c
mov byte [esp + 0x27], al
mov eax, esi
push eax
call fcn.0050c473
cmp byte [esp + 0x27], 0
jne 0x461de2
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461dd5
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461dc8
jmp 0x461eeb
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004abf3b
test al, al
jne 0x461e28
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461e1b
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461e0e
jmp 0x461eeb
mov eax, dword [ebp + 8]
call fcn.0045fd04
test al, al
je 0x461ebc
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x2c]
call fcn.0045b34c
test al, al
jne 0x461e7d
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], ebx
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461e73
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461e66
jmp 0x461eeb
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x461ebc
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [edi], 1
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461eb2
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461ea5
jmp 0x461eeb
mov edi, dword [ebp + 0xc]
and dword [edi], 0
lea esi, [esp + 0x1c]
call fcn.00472fef
lea esi, [esp + 0x18]
call fcn.00472fef
jmp 0x461ee3
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call fcn.005f9fb5
pop ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x461ed6
lea eax, [esp + 0x334]
push eax
call fcn.0050c473
lea eax, [esp + 0x84]
push eax
call fcn.0050c473
push dword [esp + 0x59]
call fcn.005f858a
pop ecx
push dword [esp + 0x4d]
call fcn.005f858a
cmp dword [esp + 0x14], 0xffffffff
pop ecx
je 0x461f2a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10