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

Disassembly:
push 0xffffffffffffffff
push 0x3a2f2c4
mov eax, dword fs:[0]
push eax
sub esp, 0x59c
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c0]
mov edi, dword [esp + 0x5c4]
mov ebp, ecx
lea ecx, [esp + 0x25c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
call fcn.039efdc0
xor ebx, ebx
mov dword [esp + 0x5b8], ebx
lea ecx, [esp + 0x114]
call fcn.039efdc0
mov byte [esp + 0x5b8], 1
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x260]
push edx
mov ecx, edi
call fcn.039e5a80
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x264]
push ecx
lea ecx, [esp + 0x7c]
call fcn.039f01a0
mov byte [esp + 0x5b8], 2
mov ecx, edi
call fcn.039e50f0
mov ecx, edi
call fcn.039e5e30
test eax, eax
je 0x3983859
lea ecx, [esp + 0x300]
call fcn.039efdc0
mov byte [esp + 0x5b8], 3
lea edx, [esp + 0x300]
push edx
mov ecx, edi
call fcn.039e5c40
push ecx
mov dword [esp + 0x48], esp
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], esp
call fcn.0397bf20
mov byte [esp + 0x5b8], 5
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x5b8], 6
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x5b8], 7
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push edi
push ecx
mov ecx, ebp
call fcn.0397e880
test eax, eax
je 0x39837b1
mov edx, dword [0x3a56b80]
push edx
push ebx
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x1c4]
xor ebp, ebp
xor esi, esi
call fcn.039f01a0
mov byte [esp + 0x5b8], 8
mov ecx, dword [0x3a56b80]
push ecx
push ebx
lea edx, [esp + 0x308]
push edx
lea ecx, [esp + 0x1c4]
call fcn.039eff20
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0x1c4]
call fcn.039eff20
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push ebx
lea eax, [esp + 0x1c0]
push eax
call fcn.03982f80
test eax, eax
je 0x3983780
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x3983780
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.0397b3a0
add esp, 8
test eax, eax
je 0x3983770
lea ecx, [esp + 0x24]
lea edi, [ebp + 1]
call fcn.0397c2d0
mov esi, eax
cmp esi, ebx
je 0x398375e
nop
cmp ebp, ebx
jne 0x398375e
cmp edi, ebx
je 0x398375e
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.0397b200
test eax, eax
je 0x3983749
mov esi, dword [esi]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x3a8]
push edx
push 0x104
push str..DLL
push esi
push ebx
call dword [0x3a5ff2c]
cmp eax, ebx
je 0x3983749
push 7
lea eax, [esp + 0x3a8]
push 0x80
push eax
call fcn.03974d90
add esp, 0xc
test al, al
je 0x3983749
push 2
push ebx
lea ecx, [esp + 0x3ac]
push ecx
call dword [0x3a5fd60]
mov esi, eax
cmp esi, ebx
je 0x3983749
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x64]
push eax
mov eax, esi
call fcn.0397b040
add esp, 8
test eax, eax
je 0x3983740
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
ja 0x398373b
jne 0x3983730
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x5c]
ja 0x398373b
push esi
xor ebp, ebp
call dword [0x3a5fd5c]
jmp 0x398374b
mov ebp, 1
push esi
call dword [0x3a5fd5c]
jmp 0x398374b
xor edi, edi
lea ecx, [esp + 0x24]
call fcn.0397c340
mov esi, eax
cmp esi, ebx
jne 0x3983680
mov edx, dword [esp + 0x58]
push edx
push ebx
call fcn.0397b430
mov edi, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x20]
push eax
call dword [0x3a60138]
mov esi, 1
mov byte [esp + 0x5b8], 7
lea ecx, [esp + 0x1b8]
call fcn.039ef660
cmp ebp, ebx
jne 0x39837a9
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
add ecx, 0xc
call fcn.03981b50
mov ebp, dword [esp + 0x14]
cmp esi, ebx
je 0x39837de
mov edx, dword [0x3a56b80]
push edx
push 0x3a45c6c
lea ecx, [esp + 0x78]
call fcn.039efdd0
mov eax, dword [0x3a56b80]
push eax
push ebx
lea ecx, [esp + 0x308]
push ecx
lea ecx, [esp + 0x7c]
call fcn.039eff20
mov byte [esp + 0x5b8], 0xa
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x3983815
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x3983808
mov ecx, esi
call fcn.0397b170
add esi, 0x10
cmp esi, edi
jne 0x39837f6
mov esi, dword [esp + 0x30]
push esi
call fcn.0393d9e0
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x5b8], 3
mov edx, dword [esp + 0x24]
push edx
call fcn.0393d9e0
add esp, 4
mov byte [esp + 0x5b8], 2
lea ecx, [esp + 0x300]
call fcn.039ef660
mov ecx, edi
call fcn.039e5e30
test eax, eax
jne 0x398354d
mov eax, dword [0x3a56b80]
push eax
push 0x3a45c6c
lea ecx, [esp + 0x78]
call fcn.039efdd0
mov ecx, dword [0x3a56b80]
push ecx
push ebx
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0x7c]
call fcn.039eff20
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
shr ecx, 4
lea esi, [ebp + 8]
push esi
and ecx, 1
push ecx
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.03982f80
mov edi, eax
cmp edi, ebx
je 0x39838e6
cmp dword [esi], 0xffffffff
jne 0x39838b1
mov dword [esi], ebp
push 0x3a78dfc
call dword [0x3a5ff28]
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [0x3a78e2c]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
call fcn.03946d40
push 0x3a78dfc
call dword [0x3a5ff24]
mov byte [esp + 0x5b8], 1
lea ecx, [esp + 0x70]
call fcn.039ef660
mov byte [esp + 0x5b8], bl
lea ecx, [esp + 0x114]
call fcn.039ef660
mov dword [esp + 0x5b8], 0xffffffff
lea ecx, [esp + 0x25c]
call fcn.039ef660
mov eax, edi
mov ecx, dword [esp + 0x5b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x5a8
ret 8