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

Disassembly:
push 0xffffffffffffffff
push 0x3a2fe12
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x2fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x314]
mov dword fs:[0], eax
mov esi, dword [esp + 0x324]
mov ebx, dword [esp + 0x328]
mov edi, dword [esp + 0x32c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
call dword [0x3a5fd78]
mov dword [esp + 0x28], eax
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov byte [esp + 0x60], 1
mov dword [esp + 0x64], ebp
call fcn.039f88a0
add esp, 4
test al, al
jne 0x398d0cd
lea ecx, [esp + 0x2c]
call fcn.039d9be0
mov dword [esp + 0x31c], ebp
lea ecx, [esp + 0x44]
call fcn.039d9be0
mov byte [esp + 0x31c], 1
lea ecx, [esp + 0x124]
call fcn.039efdc0
mov byte [esp + 0x31c], 2
mov eax, dword [0x3a56b80]
push eax
push 0x3a465b8
lea ecx, [esp + 0x12c]
call fcn.039efdd0
mov ecx, dword [0x3a56b80]
push ecx
push ebx
lea ecx, [esp + 0x12c]
call fcn.039efdd0
mov ecx, dword [esp + 0x124]
push 1
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
push 0x80000002
push ebp
push esi
call fcn.03972ee0
add esp, 0x1c
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x398cf44
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edx, eax
push edx
lea ecx, [esp + 0x68]
push ecx
push edi
call fcn.039e4120
add esp, 0xc
xor bl, bl
xor esi, esi
xor edi, edi
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
sub ecx, ebp
mov eax, 0x5397829d
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x398cfa7
mov edx, dword [0x3a56b80]
push edx
lea eax, [esp + 0x68]
lea ecx, [edi + ebp]
push eax
call fcn.039eeff0
test eax, eax
jne 0x398cf9c
mov bl, 1
inc esi
add edi, 0xc4
test bl, bl
je 0x398cf63
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0xa
jbe 0x398cfbf
call dword [0x3a5ff7c]
mov dword [esp + 0x18], eax
test bl, bl
jne 0x398cf40
lea ecx, [esp + 0x26c]
call fcn.039efdc0
mov byte [esp + 0x31c], 3
lea ecx, [esp + 0x1c8]
call fcn.039efdc0
mov byte [esp + 0x31c], 4
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.03986310
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1d0]
push eax
push ecx
call fcn.03986310
push 1
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1e0]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x288]
push edx
mov edx, dword [esp + 0x144]
push 1
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push 0x80000002
push eax
call fcn.03967510
add esp, 0x38
mov byte [esp + 0x31c], 3
lea ecx, [esp + 0x1c8]
call fcn.039ef660
mov byte [esp + 0x31c], 2
lea ecx, [esp + 0x26c]
call fcn.039ef660
mov byte [esp + 0x31c], 1
lea ecx, [esp + 0x124]
call fcn.039ef660
mov byte [esp + 0x31c], bl
lea ecx, [esp + 0x44]
call fcn.039519b0
mov dword [esp + 0x31c], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.039529f0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
jmp 0x398d0eb
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea ecx, [esp + 0x80]
call fcn.039efdc0
mov dword [esp + 0x31c], 5
mov ecx, dword [0x3a56b80]
push ecx
push 0x3a465b8
lea ecx, [esp + 0x88]
call fcn.039efdd0
mov edx, dword [0x3a56b80]
push edx
push ebx
lea ecx, [esp + 0x88]
call fcn.039efdd0
lea eax, [esp + 0x80]
push edi
push eax
call fcn.039f4f50
mov ecx, dword [esp + 0x88]
push 1
push ecx
push 0x80000002
push esi
call fcn.03966380
mov eax, dword [esp + 0x98]
push 1
push 0
push 0x24
lea edx, [esp + 0x80]
push edx
push 3
push 0
push 0
push eax
push 0x80000002
push esi
call fcn.03967510
mov ecx, dword [esp + 0xc0]
add esp, 0x40
push 4
push ecx
push 0x80000002
push esi
call fcn.039663c0
add esp, 0x10
call fcn.039dfa90
mov edx, dword [esp + 0x28]
push edx
call dword [0x3a5fde0]
mov dword [esp + 0x31c], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.039ef660
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2fc]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x30c
ret