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

Disassembly:
push 0xffffffffffffffff
push 0x3a3095e
mov eax, dword fs:[0]
push eax
sub esp, 0x5dc
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x5d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x5f0]
mov dword fs:[0], eax
cmp dword [esp + 0x604], 1
mov eax, dword [esp + 0x60c]
mov ecx, dword [esp + 0x610]
mov edx, dword [esp + 0x614]
mov ebp, dword [esp + 0x61c]
mov esi, dword [esp + 0x600]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x618]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x620]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ecx
jne 0x3995a2e
call dword [0x3a5fd78]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x34], eax
call fcn.039efdc0
xor ebx, ebx
mov dword [esp + 0x5f8], ebx
lea ecx, [esp + 0x110]
call fcn.039efdc0
mov byte [esp + 0x5f8], 1
lea ecx, [esp + 0x1b4]
call fcn.039efdc0
mov byte [esp + 0x5f8], 2
lea ecx, [esp + 0x258]
call fcn.039efdc0
mov byte [esp + 0x5f8], 3
lea edx, [esp + 0x258]
push edx
push esi
call fcn.039d9a90
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x78]
push edx
push eax
call fcn.03975600
add esp, 0x14
test al, al
jne 0x3995a35
mov byte [esp + 0x5f8], 2
lea ecx, [esp + 0x258]
call fcn.039ef660
mov byte [esp + 0x5f8], 1
lea ecx, [esp + 0x1b4]
call fcn.039ef660
mov byte [esp + 0x5f8], bl
lea ecx, [esp + 0x110]
call fcn.039ef660
mov dword [esp + 0x5f8], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.039ef660
xor al, al
jmp 0x3995f11
mov eax, dword [esp + 0x6c]
push eax
call fcn.039734c0
add esp, 4
test al, al
je 0x39959df
mov eax, dword [esp + 0x6c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x3995a50
sub eax, edx
sar eax, 1
mov edi, eax
lea esi, [edi - 1]
push esi
lea ecx, [esp + 0x70]
call fcn.039ef290
cmp word [eax], 0x5c
je 0x3995a84
push esi
lea ecx, [esp + 0x70]
call fcn.039ef290
cmp word [eax], 0x2f
jne 0x3995aad
cmp edi, 3
jne 0x3995a9e
push 1
lea ecx, [esp + 0x70]
call fcn.039ef290
cmp word [eax], 0x3a
je 0x39959df
mov ecx, dword [esp + 0x70]
dec ecx
push ecx
lea ecx, [esp + 0x70]
call fcn.039efbb0
mov eax, dword [esp + 0x6c]
push ebx
push ebx
push ebx
lea edx, [esp + 0x11c]
push edx
push eax
call fcn.03976d20
add esp, 0x14
test al, al
jne 0x3995b1b
mov edx, dword [esp + 0x6c]
push ebx
lea ecx, [esp + 0x1b8]
push ecx
push edx
call fcn.03973bd0
add esp, 0xc
test al, al
je 0x3995b0b
mov eax, dword [esp + 0x1b4]
push 7
push 0x10
push eax
call fcn.03974d90
add esp, 0xc
test al, al
jne 0x3995b0b
push 3
call dword [0x3a5fde0]
mov dword [ebp], ebx
jmp 0x3995ec0
push 2
call dword [0x3a5fde0]
mov dword [ebp], ebx
jmp 0x3995ec0
lea ecx, [esp + 0x3a0]
call fcn.039efdc0
mov byte [esp + 0x5f8], 4
mov edx, dword [esp + 0x110]
push 1
lea ecx, [esp + 0x3a4]
push ecx
push edx
call fcn.03984510
add esp, 0xc
lea ecx, [esp + 0x2fc]
call fcn.039efdc0
mov byte [esp + 0x5f8], 5
mov eax, dword [esp + 0x3a0]
push eax
lea ecx, [esp + 0x300]
push ecx
call fcn.0394f4b0
add esp, 8
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x17], bl
call fcn.0394ec90
mov byte [esp + 0x5f8], 6
lea ecx, [esp + 0x44]
call fcn.03953a00
lea ecx, [esp + 0x44]
call fcn.0394fd10
mov ebp, eax
xor esi, esi
lea esp, [esp]
cmp byte [esp + 0x17], bl
jne 0x3995cc0
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3a4]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi*4 + 0x3a755ac]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.039649f0
mov edi, eax
add esp, 0x18
cmp edi, 1
je 0x3995d70
mov eax, dword [esp + 0x38]
cmp eax, 1
jle 0x3995c23
cmp eax, dword [esp + 0x3c]
jle 0x3995c23
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x3995c23
mov dword [esp + 0x3c], eax
mov eax, dword [esi*4 + 0x3a755ac]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0394edf0
mov ebp, dword [eax]
and ebp, 7
cmp edi, ebx
jne 0x3995cb6
mov eax, dword [esi*4 + 0x3a755ac]
mov edx, dword [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0x60
call fcn.0394edf0
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esi*4 + 0x3a755ac]
lea edx, [esp + 0x4f0]
push edx
lea eax, [esp + 0x70]
push eax
push ebx
push 1
push ebx
push 0x3a3ad58
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x40]
and edi, 7
call fcn.03964240
test eax, eax
jne 0x3995cb6
mov al, byte [esp + 0x4e8]
cmp dword [esp + 0x4ec], ebx
je 0x3995ca4
cmp esi, ebx
jne 0x3995ca4
cmp al, 1
jne 0x3995ca4
mov byte [esp + 0x17], al
cmp edi, 3
je 0x3995d87
cmp edi, 4
je 0x3995d87
inc esi
cmp esi, 2
jl 0x3995bb0
cmp ebp, ebx
je 0x3995e0a
cmp ebp, 2
je 0x3995e0a
cmp byte [esp + 0x17], bl
jne 0x3995cf3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x110]
push edx
push 1
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0398f4a0
add esp, 0x10
lea ecx, [esp + 0x548]
call fcn.039efdc0
mov byte [esp + 0x5f8], 9
mov eax, dword [esp + 0x2fc]
lea edx, [esp + 0x548]
push edx
push eax
call fcn.039f8d10
mov ecx, dword [esp + 0x3c]
add esp, 8
push ecx
call dword [0x3a5fde0]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x610]
push ecx
mov ecx, dword [esp + 0x554]
push edx
push eax
push 1
push ecx
call dword [0x3a601b0]
mov edx, dword [esp + 0x20]
mov dword [edx], eax
mov byte [esp + 0x5f8], 6
lea ecx, [esp + 0x548]
jmp 0x3995e82
push 3
call dword [0x3a5fde0]
mov eax, dword [esp + 0x20]
mov dword [eax], 0xffffffff
jmp 0x3995e87
cmp esi, 1
je 0x3995d90
cmp al, 1
je 0x3995dab
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x110]
push ecx
push ebx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0398f4a0
add esp, 0x10
lea ecx, [esp + 0x444]
call fcn.039efdc0
mov byte [esp + 0x5f8], 7
mov edx, dword [esp + 0x2fc]
lea ecx, [esp + 0x444]
push ecx
push edx
call fcn.039f8d10
mov eax, dword [esp + 0x3c]
add esp, 8
push eax
call dword [0x3a5fde0]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x610]
push eax
mov eax, dword [esp + 0x450]
push ecx
push edx
push 1
push eax
jmp 0x3995e67
lea ecx, [esp + 0x444]
call fcn.039efdc0
mov byte [esp + 0x5f8], 8
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x444]
push eax
push ecx
call fcn.039f8d10
mov edx, dword [esp + 0x3c]
add esp, 8
push edx
call dword [0x3a5fde0]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x610]
push edx
mov edx, dword [esp + 0x450]
push eax
push ecx
push 1
push edx
call dword [0x3a601b0]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov byte [esp + 0x5f8], 6
lea ecx, [esp + 0x444]
call fcn.039ef660
mov byte [esp + 0x5f8], 5
lea ecx, [esp + 0x44]
call fcn.0394fcd0
mov byte [esp + 0x5f8], 4
lea ecx, [esp + 0x2fc]
call fcn.039ef660
mov byte [esp + 0x5f8], 3
lea ecx, [esp + 0x3a0]
call fcn.039ef660
mov byte [esp + 0x5f8], 2
lea ecx, [esp + 0x258]
call fcn.039ef660
mov byte [esp + 0x5f8], 1
lea ecx, [esp + 0x1b4]
call fcn.039ef660
mov byte [esp + 0x5f8], bl
lea ecx, [esp + 0x110]
call fcn.039ef660
mov dword [esp + 0x5f8], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.039ef660
mov al, 1
mov ecx, dword [esp + 0x5f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5d8]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x5e8
ret