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

Disassembly:
push 0xffffffffffffffff
push 0x3a2d382
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
mov eax, dword [esp + 0x560]
mov ebp, dword [esp + 0x558]
mov ecx, dword [esp + 0x564]
mov edi, dword [esp + 0x56c]
mov edx, dword [esp + 0x568]
mov ebx, dword [esp + 0x55c]
mov esi, dword [esp + 0x570]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x574]
mov dword [esp + 0x4c], eax
mov byte [eax], 0
lea eax, [ebp + 0x1c]
push eax
mov dword [esp + 0x3c], ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], 0
call fcn.039dfe60
mov dword [esi], 0
mov eax, dword [ebp + ebx*4]
add esp, 0x14
test eax, eax
je 0x396b098
mov eax, dword [eax + 0x28]
test eax, eax
je 0x396b098
cmp dword [esp + 0x18], 0
je 0x396b098
cmp dword [esp + 0x38], 0
je 0x396b098
push 1
push edi
lea edx, [esp + 0x1c]
push edx
push 0
push 1
push 2
push 0x3a3f68c
push ebx
push ebp
mov ecx, edi
mov dword [edi], eax
call fcn.03962d90
test al, al
je 0x396b098
lea ecx, [esp + 0x1ac]
call fcn.039efdc0
mov dword [esp + 0x550], 0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1ac]
push eax
push ecx
call fcn.039648f0
inc dword [esi]
add esp, 8
cmp word [eax], 0
mov esi, eax
mov dword [esp + 0x20], esi
jne 0x396abb7
mov eax, dword [edi]
push ebx
push eax
mov ecx, ebp
call fcn.0394edf0
mov esi, eax
mov eax, dword [esi + 0x30]
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x1c], esi
call fcn.0394edf0
mov edi, eax
test edi, edi
je 0x396aeb8
mov eax, dword [edi]
test eax, eax
je 0x396aeb8
nop
push ebx
push eax
mov ecx, ebp
call fcn.0394edf0
lea ecx, [esp + 0x108]
mov esi, eax
call fcn.039efdc0
mov byte [esp + 0x550], 3
cmp word [esi], 0
je 0x396ae04
movzx eax, word [esi + 2]
push 0
lea ecx, [esp + 0x10c]
movzx edx, ax
push ecx
push edx
add esi, 4
push esi
call fcn.039f6d90
mov esi, dword [esp + 0x118]
add esp, 0x10
jmp 0x396ae07
mov esi, dword [esp + 0x20]
movzx eax, word [esi]
mov dword [esp + 0x30], esi
mov byte [esp + 0x1f], 0
test ax, ax
je 0x396abef
cmp ax, 0x5c
je 0x396abeb
cmp ax, 0x2f
je 0x396abeb
movzx eax, word [esi + 2]
add esi, 2
cmp ax, 0x7e
jne 0x396abe6
mov byte [esp + 0x1f], 1
test ax, ax
jne 0x396abc8
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x108]
call fcn.039efdc0
mov byte [esp + 0x550], 1
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push 0
push 1
sub esi, eax
sar esi, 1
push esi
push eax
push ebx
push ebp
mov ecx, edi
call fcn.03963f50
test al, al
jne 0x396ad89
mov edx, dword [esp + 0x30]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 1
push esi
push edx
push ebx
push ebp
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.03962d90
test al, al
jne 0x396ad49
cmp byte [esp + 0x1f], al
je 0x396adcf
lea ecx, [esp + 0x64]
call fcn.039efdc0
mov byte [esp + 0x550], 2
push 0x104
lea ecx, [esp + 0x68]
call fcn.039efb00
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push 0
push 1
push esi
push ecx
push ebx
push ebp
mov ecx, edi
call fcn.03964240
cmp eax, 0xea
jne 0x396ace5
mov edx, dword [esp + 0x14]
inc edx
push edx
lea ecx, [esp + 0x68]
call fcn.039efb00
mov ecx, dword [esp + 0x64]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 1
push esi
push eax
push ebx
push ebp
mov ecx, edi
call fcn.03964240
test eax, eax
jne 0x396adbe
mov eax, dword [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x396acf4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x68]
call fcn.039efbb0
mov eax, dword [esp + 0x68]
push 1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x1c]
push edx
push 0
push 1
push eax
push ecx
push ebx
push ebp
mov ecx, edi
call fcn.03962d90
test al, al
je 0x396adbe
mov byte [esp + 0x550], 1
lea ecx, [esp + 0x64]
call fcn.039ef660
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov dword [edi], edx
inc dword [eax]
cmp word [esi], 0
je 0x396ad66
add esi, 2
mov dword [esp + 0x20], esi
mov byte [esp + 0x550], 0
lea ecx, [esp + 0x108]
call fcn.039ef660
cmp word [esi], 0
jne 0x396abb3
jmp 0x396ab2e
mov byte [esp + 0x550], 0
lea ecx, [esp + 0x108]
call fcn.039ef660
mov dword [esp + 0x550], 0xffffffff
lea ecx, [esp + 0x1ac]
call fcn.039ef660
mov eax, 1
jmp 0x396b09d
mov byte [esp + 0x550], 1
lea ecx, [esp + 0x64]
call fcn.039ef660
mov byte [esp + 0x550], 0
lea ecx, [esp + 0x108]
call fcn.039ef660
mov dword [esp + 0x550], 0xffffffff
lea ecx, [esp + 0x1ac]
call fcn.039ef660
mov eax, 2
jmp 0x396b09d
add esi, 4
push 0xffffffffffffffff
lea eax, [esp + 0x324]
push esi
push eax
mov dword [esp + 0x24], esi
call fcn.03936080
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ecx + 0x24]
add ecx, 0x24
add esp, 0xc
mov dword [esp + 0x40], edx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2f8]
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.03968280
mov ecx, eax
call fcn.0394fe80
test al, al
je 0x396ae93
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x44]
add ecx, 0x44
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.03968300
mov ecx, eax
call fcn.0394fe80
test al, al
je 0x396ae93
mov ecx, dword [esp + 0x24]
push esi
call fcn.03951950
add edi, 4
mov byte [esp + 0x550], 0
lea ecx, [esp + 0x108]
call fcn.039ef660
mov eax, dword [edi]
test eax, eax
jne 0x396ab60
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
mov esi, dword [esi + 0x18]
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x38], esi
call fcn.0394edf0
lea ecx, [esp + 0x250]
mov dword [esp + 0x3c], eax
call fcn.039efdc0
mov byte [esp + 0x550], 4
xor edi, edi
mov dword [esp + 0x18], edi
test esi, esi
jle 0x396b069
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + edi*4]
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.0394edf0
push ebx
push ebp
mov ecx, eax
call fcn.039500e0
lea ecx, [esp + 0x108]
mov esi, eax
call fcn.039efdc0
mov byte [esp + 0x550], 5
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 1
push 0
push 0x3a3ad58
push ebx
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0x60
call fcn.03964240
test eax, eax
jne 0x396b046
mov eax, dword [esp + 0x38]
push eax
add esi, 4
push esi
call fcn.039f87e0
add esp, 8
test al, al
jne 0x396af9a
cmp word [esp + 0x6c], 0
je 0x396b046
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.039f87e0
add esp, 8
test al, al
je 0x396b046
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x44]
add ecx, 0x44
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], edx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x34], esi
call fcn.03968300
mov ecx, eax
call fcn.0394fe80
test al, al
je 0x396b046
cmp byte [esp + 0x64], 1
je 0x396aff2
lea ecx, [esp + 0x6c]
push ecx
push esi
lea edx, [esp + 0x2fc]
push edx
lea ecx, [esp + 0x70]
call fcn.03950100
jmp 0x396b02d
push 0xffffffffffffffff
lea eax, [esp + 0x324]
push esi
push eax
call fcn.03936080
mov ecx, 7
lea esi, [esp + 0x78]
lea edi, [esp + 0x534]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x24]
add esp, 0xc
mov byte [ecx], 1
mov dword [esp + 0x2f4], 0xffffffff
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2f4]
push edx
lea eax, [esp + 0x5c]
push eax
add ecx, 0x24
call fcn.0396a190
mov byte [esp + 0x550], 4
lea ecx, [esp + 0x108]
call fcn.039ef660
inc edi
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x18], edi
jl 0x396aef5
mov byte [esp + 0x550], 0
lea ecx, [esp + 0x250]
call fcn.039ef660
mov dword [esp + 0x550], 0xffffffff
lea ecx, [esp + 0x1ac]
call fcn.039ef660
xor eax, eax
jmp 0x396b09d
mov eax, 3
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x540
ret