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

Disassembly:
push 0xffffffffffffffff
push 0x3a2fe98
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x454]
mov dword fs:[0], eax
mov esi, dword [esp + 0x464]
mov edi, dword [esp + 0x468]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x264]
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 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 byte [esp + 0x54], 1
mov dword [esp + 0x58], 1
call fcn.039efdc0
mov dword [esp + 0x45c], ebx
lea ecx, [esp + 0x3ac]
call fcn.039efdc0
mov byte [esp + 0x45c], 1
push 1
lea eax, [esp + 0x268]
push eax
push edi
call fcn.03984510
mov eax, dword [esp + 0x270]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3bc]
push edx
push eax
call fcn.03973bd0
add esp, 0x18
test al, al
je 0x398d4d6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.039f88a0
add esp, 4
test al, al
jne 0x398d4d6
lea ecx, [esp + 0x24]
call fcn.039d9be0
mov byte [esp + 0x45c], 2
lea ecx, [esp + 0x3c]
call fcn.039d9be0
mov byte [esp + 0x45c], 3
lea ecx, [esp + 0x11c]
call fcn.039efdc0
mov byte [esp + 0x45c], 4
mov edx, dword [0x3a56b80]
push edx
push 0x3a465b8
lea ecx, [esp + 0x124]
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x3b4]
push ecx
lea ecx, [esp + 0x128]
call fcn.039eff20
mov ecx, dword [esp + 0x11c]
push 1
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
push 0x80000002
push ebx
push esi
call fcn.03972ee0
add esp, 0x1c
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
call fcn.039e4120
add esp, 0xc
xor bl, bl
xor esi, esi
xor edi, edi
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
sub ecx, ebp
mov eax, 0x5397829d
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x398d3d4
mov edx, dword [0x3a56b80]
push edx
lea eax, [esp + 0x60]
lea ecx, [edi + ebp]
push eax
call fcn.039eeff0
test eax, eax
jne 0x398d3c9
mov bl, 1
inc esi
add edi, 0xc4
test bl, bl
je 0x398d390
inc dword [esp + 0x14]
test bl, bl
jne 0x398d373
lea ecx, [esp + 0x308]
call fcn.039efdc0
mov bl, 5
mov byte [esp + 0x45c], bl
lea ecx, [esp + 0x1c0]
call fcn.039efdc0
mov byte [esp + 0x45c], 6
lea ecx, [esp + 0x308]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.03986310
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x28], al
lea eax, [esp + 0x1c8]
push eax
push ecx
call fcn.03986310
push 1
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x1d8]
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x1d8]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x324]
push edx
mov edx, dword [esp + 0x13c]
push 1
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push 0x80000002
push eax
call fcn.03967510
add esp, 0x38
mov byte [esp + 0x45c], bl
lea ecx, [esp + 0x1c0]
call fcn.039ef660
mov byte [esp + 0x45c], 4
lea ecx, [esp + 0x308]
call fcn.039ef660
mov byte [esp + 0x45c], 3
lea ecx, [esp + 0x11c]
call fcn.039ef660
mov byte [esp + 0x45c], 2
lea ecx, [esp + 0x3c]
call fcn.039519b0
mov byte [esp + 0x45c], 1
lea ecx, [esp + 0x24]
call fcn.039529f0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x78]
call fcn.039efdc0
mov byte [esp + 0x45c], 7
mov ecx, dword [0x3a56b80]
push ecx
push 0x3a465b8
lea ecx, [esp + 0x80]
call fcn.039efdd0
mov edx, dword [0x3a56b80]
push edx
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x84]
call fcn.039eff20
mov ecx, dword [esp + 0x78]
push 1
push ecx
push 0x80000002
push esi
call fcn.03966380
mov eax, dword [esp + 0x88]
push 1
push 0
push 0x24
lea edx, [esp + 0x70]
push edx
push 3
push 0
push 0
push eax
push 0x80000002
push esi
call fcn.03967510
mov ecx, dword [esp + 0x4a4]
mov edx, dword [esp + 0xb0]
push ecx
push edx
push 0x80000002
push esi
call fcn.039663c0
add esp, 0x48
call fcn.039dfa90
mov byte [esp + 0x45c], 1
lea ecx, [esp + 0x78]
call fcn.039ef660
mov byte [esp + 0x45c], 0
lea ecx, [esp + 0x3ac]
call fcn.039ef660
mov dword [esp + 0x45c], 0xffffffff
lea ecx, [esp + 0x264]
call fcn.039ef660
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x44c
ret