Function at 0x39c6af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x3a335d5
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b8]
mov ebp, dword [esp + 0x1d4]
mov ecx, dword [esp + 0x1d8]
mov ebx, dword [esp + 0x1bc]
mov esi, dword [esp + 0x1c8]
mov edi, dword [esp + 0x1c4]
push 0
push 0
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ecx
call fcn.03986600
lea edx, [esp + 0x2c]
push edx
push 0x40
lea eax, [esp + 0x178]
push eax
push ebp
call fcn.0398beb0
mov ecx, 0x5a4d
add esp, 0x1c
cmp word [esp + 0x164], cx
je 0x39c6bc6
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0x19
test al, 1
je 0x39c72e1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x39c72e1
mov edx, dword [0x3a56b80]
push edx
push str.__DOS_header_not_found_
jmp 0x39c72dc
mov eax, dword [esp + 0x1a0]
cdq
push edx
push eax
push ebp
call fcn.03986600
lea eax, [esp + 0x2c]
push eax
push 0xf8
lea ecx, [esp + 0x80]
push ecx
push ebp
call fcn.0398beb0
add esp, 0x1c
cmp dword [esp + 0x20], 0xf8
jne 0x39c72b9
cmp dword [esp + 0x6c], 0x4550
jne 0x39c72b9
test esi, esi
je 0x39c6c33
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0xbc]
xor eax, eax
cmp edx, eax
jl 0x39c6c33
jg 0x39c6c29
mov eax, dword [esi]
cmp eax, ecx
jbe 0x39c6c33
mov eax, 0xc0000040
jmp 0x39c72e6
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x168]
push edx
call fcn.039c2e50
push edi
mov dword [esp + 0xcc], eax
call fcn.039d03e0
add esp, 0xc
xor esi, esi
test al, al
jne 0x39c6d8a
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xf4], 1
jne 0x39c6d8a
test dword [esp + 0x1d0], 0x1000000
je 0x39c6ccc
push ebp
push 0x8000000
push 0x80
push esi
push edi
push 0xf000d
push ebx
call dword [0x3a5fe10]
mov esi, eax
test esi, esi
jge 0x39c6ccc
call dword [0x3a5fdb4]
push eax
call fcn.039d0410
add esp, 4
push ebp
push 0x8000000
push 8
push 0
push edi
push 0xf000d
push ebx
call dword [0x3a5fe10]
mov esi, eax
test esi, esi
jl 0x39c72e6
mov ecx, dword [esp + 0x18]
push 0
add ecx, 0x130
call fcn.039881d0
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 0x168]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0x16c]
add edx, edi
adc eax, ecx
push 0xd8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.0393d940
add esp, 4
mov dword [esp + 0x34], eax
xor edi, edi
mov dword [esp + 0x1b0], edi
cmp eax, edi
je 0x39c6d26
mov ecx, eax
call fcn.039c3260
mov edi, eax
mov dword [esp + 0x1b0], 0xffffffff
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x30]
push 0
push 0
push edx
push ecx
mov ecx, dword [esp + 0x1dc]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0xd0]
push ebp
push eax
mov eax, dword [esp + 0x1dc]
push ecx
mov ecx, dword [esp + 0x1f0]
push edx
push eax
push ecx
mov ecx, edi
call fcn.039c2af0
mov edx, dword [ebx]
push edi
push edx
call fcn.039c4a80
add esp, 8
mov eax, esi
jmp 0x39c72e6
movzx eax, word [esp + 0x72]
push eax
lea ecx, [esp + 0x44]
call fcn.039c4eb0
mov dword [esp + 0x1b0], 1
movzx ecx, word [esp + 0x80]
mov edx, dword [esp + 0x1a0]
xor ebx, ebx
lea eax, [ecx + edx + 0x18]
push ebx
push eax
push ebp
call fcn.03986600
movzx eax, word [esp + 0x7e]
lea edx, [eax + eax*4]
add edx, edx
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
add edx, edx
add edx, edx
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x4c]
call fcn.0397bf90
mov ecx, eax
call fcn.0397bda0
push eax
push ebp
call fcn.0398beb0
mov ecx, dword [esp + 0xcc]
add ecx, 0xffff
xor eax, eax
and ecx, 0xffff0000
add esp, 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
cmp eax, ebx
je 0x39c6e3a
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.03999990
mov eax, 0xc0000017
jmp 0x39c72e6
xor edx, edx
xor esi, esi
cmp dx, word [esp + 0x72]
jae 0x39c6e5c
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
or ebx, dword [eax + 0x24]
movzx eax, word [esp + 0x72]
inc esi
cmp esi, eax
jb 0x39c6e45
test ebx, 0x10000000
je 0x39c6f71
push ebp
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0397bf90
mov ecx, eax
call fcn.0397bda0
mov ebx, dword [esp + 0x1d4]
mov ebp, dword [esp + 0x1d0]
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x74]
push edx
push ebx
push ebp
push eax
push edi
mov edi, dword [esp + 0x1dc]
push edi
push ecx
call fcn.039c63e0
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
jl 0x39c6f54
push 0xd8
call fcn.0393d940
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x1b0], 2
test eax, eax
je 0x39c6ee3
mov ecx, eax
call fcn.039c3260
mov esi, eax
jmp 0x39c6ee5
xor esi, esi
mov byte [esp + 0x1b0], 1
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x30]
push 0
push 1
push ecx
push eax
mov eax, dword [esp + 0xcc]
push 0
push 0
push edx
push ebp
push eax
push edi
push ebx
mov ecx, esi
call fcn.039c2af0
push esi
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi]
push ecx
call fcn.039c4a80
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0x19
add esp, 8
test al, 1
je 0x39c6f54
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x39c6f54
mov ecx, dword [esi]
push ecx
push str._Added_VirtualFileMap__xh_
push eax
call fcn.039f0800
add esp, 0xc
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.03999990
mov eax, dword [esp + 0x24]
jmp 0x39c72e6
mov esi, dword [0x3a5fe10]
push 0
push 0x8000000
push 0x40
lea edx, [esp + 0x6c]
push edx
push edi
push 0xf000f
lea eax, [esp + 0x2c]
push eax
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x24], eax
jge 0x39c6fea
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x19
test dl, 1
je 0x39c6fc4
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x39c6fc4
mov eax, dword [0x3a56b80]
push eax
push str._unable_to_create_map_with_PAGE_EXECUTE_READWRITE__trying_PAGE_READWRITE_
call fcn.039efdd0
push ebx
push 0x8000000
push 4
lea ecx, [esp + 0x6c]
push ecx
push edi
push 0xf000f
lea edx, [esp + 0x2c]
push edx
call esi
cmp eax, ebx
mov dword [esp + 0x24], eax
jl 0x39c71f6
mov eax, dword [esp + 0x60]
push 4
push ebx
push 2
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x68]
push edx
push ebx
mov dword [esp + 0x80], eax
push ebx
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call dword [0x3a5fdb4]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call dword [0x3a5fe0c]
mov esi, eax
cmp esi, ebx
jge 0x39c7081
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0x19
test al, 1
je 0x39c705b
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x39c705b
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push edx
push str.__MapViewOfFile_failed__sys_map_x_
push eax
call fcn.039f0800
add esp, 0xc
mov eax, dword [esp + 0x14]
push eax
call dword [0x3a5fe44]
mov dword [esp + 0x1b0], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.03999990
mov eax, esi
jmp 0x39c72e6
push ebx
lea ecx, [esp + 0x3c]
push ecx
push ebp
call fcn.03986650
mov esi, dword [esp + 0xcc]
xor eax, eax
add esp, 0xc
cmp eax, dword [esp + 0x3c]
jl 0x39c70ab
mov eax, dword [esp + 0x38]
jg 0x39c70a9
cmp esi, eax
jbe 0x39c70ab
mov esi, eax
push ebx
push ebx
push ebp
call fcn.03986600
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
push ebp
call fcn.0398beb0
xor ecx, ecx
add esp, 0x1c
xor esi, esi
cmp cx, word [esp + 0x72]
jae 0x39c71e4
jmp 0x39c70e0
mov ebx, dword [esp + 0xa8]
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
mov eax, dword [eax + 0x10]
movzx edx, word [esp + 0x72]
lea edi, [eax + ebx - 1]
dec ebx
not ebx
and edi, ebx
lea ebx, [esi + 1]
mov dword [esp + 0x34], ebx
cmp ebx, edx
jne 0x39c713d
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
mov eax, dword [eax + 0x14]
xor ecx, ecx
add eax, edi
cmp ecx, dword [esp + 0x3c]
jl 0x39c713d
jg 0x39c712c
cmp eax, dword [esp + 0x38]
jbe 0x39c713d
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
mov edi, dword [esp + 0x38]
sub edi, dword [eax + 0x14]
movzx eax, word [esp + 0x72]
lea ecx, [esp + 0x40]
cmp ebx, eax
jne 0x39c7159
push esi
call fcn.039c4470
mov ecx, dword [esp + 0xbc]
jmp 0x39c716e
push ebx
call fcn.039c4470
push esi
lea ecx, [esp + 0x44]
lea ebx, [eax + 0xc]
call fcn.039c4470
mov ecx, dword [ebx]
sub ecx, dword [eax + 0xc]
cmp edi, ecx
jbe 0x39c7177
mov edi, ecx
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
mov ebx, dword [eax + 0xc]
add ebx, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
test byte [eax + 0x24], 0x80
jne 0x39c71d1
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
test dword [eax + 0x24], 0x10000000
jne 0x39c71d1
push esi
lea ecx, [esp + 0x44]
call fcn.039c4470
mov ecx, dword [eax + 0x14]
push 0
push ecx
push ebp
call fcn.03986600
lea edx, [esp + 0x2c]
push edx
push edi
push ebx
push ebp
call fcn.0398beb0
add esp, 0x1c
movzx eax, word [esp + 0x72]
mov esi, dword [esp + 0x34]
cmp esi, eax
jl 0x39c70e0
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x3a5fdb4]
push eax
call dword [0x3a5fe40]
cmp dword [esp + 0x14], ebx
je 0x39c6f54
push 0xd8
call fcn.0393d940
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x1b0], 3
cmp eax, ebx
je 0x39c7228
mov ecx, eax
call fcn.039c3260
mov edi, eax
jmp 0x39c722a
xor edi, edi
mov byte [esp + 0x1b0], 1
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x30]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0x1dc]
push ebx
push ebx
push edx
mov edx, dword [esp + 0x1dc]
push eax
mov eax, dword [esp + 0x1f0]
push ecx
push edx
push eax
mov ecx, edi
call fcn.039c2af0
mov ecx, dword [esp + 0x14]
push edi
push ecx
call fcn.039c4a80
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0x19
add esp, 8
test al, 1
je 0x39c72aa
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x39c72aa
mov ecx, dword [esp + 0x14]
push ecx
push str._Added_VirtualFileMap__xh_
push eax
call fcn.039f0800
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [eax], edx
jmp 0x39c6f54
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0x19
test dl, 1
je 0x39c72e1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x39c72e1
mov eax, dword [0x3a56b80]
push eax
push str.__NTSig_not_found_
call fcn.039efdd0
mov eax, 0xc0000020
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x1a0
ret