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

Disassembly:
push 0xffffffffffffffff
push 0x3a2b989
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov ecx, dword [eax]
mov esi, dword [esp + 0x6c]
push edi
push ecx
mov ecx, esi
call fcn.0394edf0
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x3952800
mov eax, dword [ebx + 0x30]
mov ebp, dword [esp + 0x70]
test eax, eax
je 0x3952278
push edi
push eax
call fcn.0394edf0
cmp dword [eax], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
je 0x3952278
mov edx, dword [eax]
push edi
push edx
mov ecx, esi
call fcn.0394edf0
cmp byte [esp + 0x90], 0
mov ebx, eax
je 0x3952235
cmp word [ebx], 0
movzx eax, word [ebx + 2]
setne cl
movzx edx, cl
push edx
push 1
movzx eax, ax
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [esp + 0x84]
push ebp
push esi
call fcn.03966db0
cmp word [ebx], 0
movzx eax, word [ebx + 2]
setne dl
mov byte [esp + 0x28], dl
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x78]
movzx edx, ax
push edx
add ebx, 4
push ebx
push 0
push ebp
push esi
call fcn.03962040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp dword [ecx + eax*4], 0
mov dword [esp + 0x14], eax
lea eax, [ecx + eax*4]
jne 0x39521f7
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x3952322
push edi
push eax
mov ecx, esi
call fcn.0394edf0
cmp dword [eax], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
je 0x3952322
mov edx, dword [eax]
push edi
push edx
mov ecx, esi
call fcn.0394edf0
cmp byte [esp + 0x90], 0
mov ebx, eax
je 0x39522df
cmp word [ebx], 0
movzx eax, word [ebx + 2]
setne cl
movzx edx, cl
push edx
push 1
movzx eax, ax
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [esp + 0x84]
push ebp
push esi
call fcn.03963f90
cmp word [ebx], 0
movzx eax, word [ebx + 2]
setne dl
mov byte [esp + 0x28], dl
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x78]
movzx edx, ax
push edx
add ebx, 4
push ebx
push 1
push ebp
push esi
call fcn.03962040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
cmp dword [ecx + eax*4], 0
mov dword [esp + 0x14], eax
lea eax, [ecx + eax*4]
jne 0x39522a1
mov ebx, dword [esp + 0x20]
push 4
call fcn.0393d940
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
xor ecx, ecx
mov dword [esp + 0x64], ecx
cmp eax, ecx
je 0x3952346
lea edx, [esp + 0x44]
mov dword [eax], edx
jmp 0x3952348
xor eax, eax
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], 2
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 3
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x20]
push edi
push eax
mov ecx, esi
call fcn.0394edf0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
jle 0x39525c4
lea ebx, [ebx]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push edi
push eax
mov ecx, esi
call fcn.0394edf0
mov ebx, eax
mov ecx, dword [ebx + 8]
push edi
push ecx
mov ecx, esi
call fcn.0394edf0
mov edx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [ebx + 0xc]
push edx
push eax
call fcn.0394edf0
cmp word [edi], 0
mov dword [esp + 0x24], eax
movzx eax, word [edi + 2]
setne dl
mov byte [esp + 0x2c], dl
mov edx, dword [esp + 0x2c]
push edx
movzx eax, ax
push eax
lea ecx, [edi + 4]
push ecx
push 0
push ebp
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x88]
push esi
call fcn.03961e30
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
push ebp
push edx
mov ecx, esi
call fcn.0394edf0
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov cl, byte [esp + 0x90]
mov dword [esp + 0x3c], 0
mov byte [esp + 0x41], cl
mov ebx, dword [ebx]
and ebx, 7
mov dword [esp + 0x34], eax
test cl, cl
je 0x39524e1
cmp word [edi], 0
movzx eax, word [edi + 2]
push 0
setne dl
mov byte [esp + 0x34], dl
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, dword [esp + 0x84]
push 1
movzx edx, ax
mov eax, dword [esp + 0x30]
push edx
push eax
push ebp
push esi
call fcn.03962d90
test al, al
jne 0x39524c1
mov ecx, dword [esp + 0x34]
cmp word [edi], 0
movzx eax, word [edi + 2]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push 0
lea edx, [esp + 0x48]
push edx
push ecx
setne dl
movzx ecx, dl
push ecx
mov ecx, dword [esp + 0x8c]
push 1
movzx edx, ax
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
push esi
call fcn.03962910
mov byte [esp + 0x41], 0
jmp 0x3952518
mov ecx, dword [esp + 0x3c]
push ebp
push ecx
mov ecx, esi
call fcn.0394edf0
mov eax, dword [eax]
and eax, 7
push ebx
push eax
call fcn.0394f940
add esp, 8
mov ebx, eax
jmp 0x3952518
cmp word [edi], 0
movzx ecx, word [edi + 2]
push eax
mov eax, dword [esp + 0x28]
push 0
push 0
lea edx, [esp + 0x48]
push edx
push eax
setne dl
movzx eax, dl
mov edx, dword [esp + 0x30]
push eax
push 1
movzx ecx, cx
push ecx
mov ecx, dword [esp + 0x94]
push edx
push ebp
push esi
call fcn.03962910
mov eax, dword [esp + 0x3c]
push ebp
push eax
mov ecx, esi
call fcn.0394edf0
mov ecx, dword [eax]
mov edx, ecx
xor edx, ebx
and edx, 7
xor edx, ecx
lea ecx, [esi + 0x1c]
push ecx
push 4
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x84]
push eax
push edx
call fcn.039dfe60
add esp, 0x14
cmp byte [esp + 0x80], 0
jne 0x3952561
mov byte [esp + 0x40], 0
jmp 0x395259f
cmp dword [esp + 0x88], 0
jne 0x3952594
movzx eax, word [edi + 2]
cmp ax, 2
jne 0x395255a
mov eax, dword [esp + 0x1c]
push 4
push 0x3a3f68c
push eax
call fcn.03a0232e
add esp, 0xc
test eax, eax
jne 0x395255a
mov byte [esp + 0x40], 1
jmp 0x395259f
mov cl, byte [esp + 0x84]
mov byte [esp + 0x40], cl
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x48]
call fcn.03a000f0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x78]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x39523a0
mov ecx, dword [esp + 0x74]
push ebp
push esi
call fcn.03962610
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jle 0x3952690
mov eax, dword [esp + 0x88]
inc eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], edx
mov edx, ecx
sub edx, eax
sar edx, 3
cmp ebx, edx
jb 0x3952612
call fcn.03a01b13
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
lea edx, [eax + ebx*8]
mov dword [esp + 0x34], edx
mov edx, ecx
sub edx, eax
sar edx, 3
cmp ebx, edx
jb 0x3952631
call fcn.03a01b13
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
sub ecx, eax
sar ecx, 3
lea edx, [eax + ebx*8]
mov dword [esp + 0x2c], edx
cmp ebx, ecx
jb 0x395264a
call fcn.03a01b13
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
movzx edx, byte [ecx + 5]
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
movzx edx, byte [ecx + 4]
mov ecx, dword [esp + 0x8c]
push edx
push ecx
lea edx, [esp + 0x38]
push edx
push edi
lea eax, [eax + ebx*8]
push eax
push ebp
push esi
call fcn.03952180
inc ebx
add esp, 0x28
cmp ebx, dword [esp + 0x18]
jl 0x39525e7
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.0394edf0
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
jle 0x39527c4
cmp byte [esp + 0x90], cl
sete byte [esp + 0x30]
jmp 0x39526d4
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push edi
push eax
mov ecx, esi
call fcn.0394edf0
mov ebx, dword [esp + 0x78]
mov edi, eax
mov ecx, dword [edi]
push ebx
push ecx
mov ecx, esi
call fcn.0394edf0
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
push ebx
push eax
call fcn.0394edf0
cmp byte [esp + 0x80], 0
mov dword [esp + 0x28], eax
mov ebx, eax
je 0x3952759
cmp byte [esp + 0x84], 0
je 0x3952759
mov eax, dword [edi + 8]
cmp eax, 0x24
jb 0x3952759
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx + 2]
test dx, dx
jne 0x395275d
push eax
call fcn.0393d960
mov edx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [edi + 8]
push eax
push edx
push ebx
call fcn.03a014a0
mov al, byte [esp + 0x9c]
add esp, 0x10
mov byte [ebx], al
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov edi, dword [edi + 4]
and al, 1
cmp word [ecx], 0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x30]
push edi
push 0
movzx eax, al
push eax
push edx
mov edx, dword [esp + 0x3c]
push ebx
push edx
setne al
movzx edx, al
movzx eax, word [ecx + 2]
push edx
push eax
add ecx, 4
push ecx
mov ecx, dword [esp + 0x98]
push ebp
push esi
call fcn.03966ee0
cmp ebx, dword [esp + 0x28]
je 0x39527af
push ebx
call fcn.0393d9b0
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jl 0x39526d0
xor ecx, ecx
mov dword [esp + 0x64], 4
mov eax, dword [esp + 0x50]
cmp eax, ecx
je 0x39527df
push eax
call fcn.0393d9e0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 0xffffffff
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0393d9e0
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret