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

Disassembly:
push 0xffffffffffffffff
push 0x3a2ff28
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4f0]
mov edi, dword [esp + 0x4e8]
mov esi, dword [esp + 0x4ec]
lea ecx, [esp + 0x32c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], eax
call fcn.039efdc0
xor ebx, ebx
mov dword [esp + 0x4e0], ebx
lea ecx, [esp + 0x9c]
call fcn.039efdc0
mov byte [esp + 0x4e0], 1
push 1
lea ecx, [esp + 0x330]
push ecx
push esi
call fcn.03984510
mov edx, dword [0x3a56b80]
add esp, 0xc
push edx
push 0x3a465b8
lea ecx, [esp + 0xa4]
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x334]
push ecx
lea ecx, [esp + 0xa8]
call fcn.039eff20
mov esi, dword [esp + 0x9c]
add esi, 6
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], esi
cmp word [esi], bx
je 0x398daf8
cmp word [esi], 0
mov ebx, esi
mov dword [esp + 0x28], ebx
je 0x398d6e5
cmp word [esi], 0x5c
je 0x398d6e1
add esi, 2
cmp word [esi], 0
jne 0x398d6d2
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x20]
movzx ebp, word [esi]
push eax
xor edx, edx
mov word [esi], dx
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x3a755ac]
lea edx, [esp + 0x24]
push edx
add eax, 6
push eax
push ecx
push edi
mov dword [esp + 0x4c], ebp
call fcn.039649f0
xor ecx, ecx
add esp, 0x18
cmp eax, ecx
jne 0x398d780
mov edx, dword [0x3a755ac]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, edi
call fcn.0394edf0
push 0
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [0x3a755ac]
lea edx, [esp + 0x47c]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 1
push 0
push 0x3a3ad58
push ecx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0x60
call fcn.03964240
test eax, eax
jne 0x398d7e5
cmp byte [esp + 0x474], 1
je 0x398dadf
jmp 0x398d7e5
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x3a755b0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x2c]
push ecx
add edx, 6
push edx
push eax
push edi
call fcn.039649f0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
jne 0x398d7c1
test ecx, ecx
je 0x398d7e5
cmp eax, ecx
jle 0x398d7d3
mov ecx, dword [0x3a755ac]
mov edx, dword [esp + 0x1c]
push ecx
push edx
jmp 0x398d7de
mov eax, dword [0x3a755b0]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.0394edf0
lea ecx, [esp + 0x288]
call fcn.039efdc0
mov byte [esp + 0x4e0], 2
mov edx, dword [esp + 0x9c]
add edx, 6
push edx
lea eax, [esp + 0x28c]
push eax
call fcn.0394f4b0
mov ecx, dword [esp + 0x290]
push 0
push ecx
call fcn.03986370
add esp, 0x10
test al, al
je 0x398db4d
xor eax, eax
mov dword [esp + 0x78], eax
push ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov byte [esp + 0x7c], 1
call fcn.039f88a0
add esp, 4
test al, al
jne 0x398da87
lea ecx, [esp + 0x140]
call fcn.039efdc0
mov byte [esp + 0x4e0], 3
mov eax, dword [esp + 0x9c]
push 0
lea edx, [esp + 0x144]
push edx
push eax
call fcn.03973bd0
add esp, 0xc
test al, al
je 0x398da73
cmp dword [esp + 0x144], 3
jle 0x398da73
lea ecx, [esp + 0x48]
call fcn.039d9be0
mov byte [esp + 0x4e0], 4
lea ecx, [esp + 0x60]
call fcn.039d9be0
mov byte [esp + 0x4e0], 5
mov eax, dword [esp + 0x140]
push 1
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x50]
push edx
push eax
push 0x80000002
push 0
push edi
call fcn.03972ee0
add esp, 0x1c
mov dword [esp + 0x14], 0
jmp 0x398d917
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x84]
push edx
push ebx
call fcn.039e4120
add esp, 0xc
xor bl, bl
xor esi, esi
xor edi, edi
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
sub ecx, ebp
mov eax, 0x5397829d
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x398d97a
mov edx, dword [0x3a56b80]
push edx
lea eax, [esp + 0x84]
lea ecx, [edi + ebp]
push eax
call fcn.039eeff0
test eax, eax
jne 0x398d96f
mov bl, 1
inc esi
add edi, 0xc4
test bl, bl
je 0x398d933
inc dword [esp + 0x14]
test bl, bl
jne 0x398d913
lea ecx, [esp + 0x3d0]
call fcn.039efdc0
mov byte [esp + 0x4e0], 6
lea ecx, [esp + 0x1e4]
call fcn.039efdc0
mov byte [esp + 0x4e0], 7
lea ecx, [esp + 0x3d0]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.03986310
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x44], al
lea eax, [esp + 0x1ec]
push eax
push ecx
call fcn.03986310
push 1
mov byte [esp + 0x54], al
mov eax, dword [esp + 0x1fc]
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x1fc]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x3ec]
push edx
mov edx, dword [esp + 0x160]
push 1
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push 0x80000002
push eax
call fcn.03967510
add esp, 0x38
mov byte [esp + 0x4e0], 6
lea ecx, [esp + 0x1e4]
call fcn.039ef660
mov byte [esp + 0x4e0], 5
lea ecx, [esp + 0x3d0]
call fcn.039ef660
mov byte [esp + 0x4e0], 4
lea ecx, [esp + 0x60]
call fcn.039519b0
mov byte [esp + 0x4e0], 3
lea ecx, [esp + 0x48]
call fcn.039529f0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov byte [esp + 0x4e0], 2
lea ecx, [esp + 0x140]
call fcn.039ef660
mov ecx, dword [esp + 0x9c]
push 1
push ecx
push 0x80000002
push edi
call fcn.03966380
mov eax, dword [esp + 0xac]
push 1
push 0
push 0x24
lea edx, [esp + 0x94]
push edx
push 3
push 0
push 0
push eax
push 0x80000002
push edi
call fcn.03967510
add esp, 0x38
call fcn.039dfa90
mov byte [esp + 0x4e0], 1
lea ecx, [esp + 0x288]
call fcn.039ef660
mov word [esi], bp
test bp, bp
je 0x398daee
add esi, 2
mov dword [esp + 0x18], esi
cmp word [esi], 0
jne 0x398d6c6
mov byte [esp + 0x4e0], 0
lea ecx, [esp + 0x9c]
call fcn.039ef660
mov dword [esp + 0x4e0], 0xffffffff
lea ecx, [esp + 0x32c]
call fcn.039ef660
mov al, 1
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x4d0
ret
mov byte [esp + 0x4e0], 1
lea ecx, [esp + 0x288]
call fcn.039ef660
mov byte [esp + 0x4e0], 0
lea ecx, [esp + 0x9c]
call fcn.039ef660
mov dword [esp + 0x4e0], 0xffffffff
lea ecx, [esp + 0x32c]
call fcn.039ef660
xor al, al
jmp 0x398db25