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

Disassembly:
push 0xffffffffffffffff
push 0x396317
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3c508c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.00312bb0
lea ecx, [esp + 0x14]
mov dword [esp + 0xd0], 0
call dword [0x39ad28]
mov byte [esp + 0xd0], 1
test byte [esp + 0x40], 0x30
jne 0x357924
mov ecx, dword [esp + 0xd8]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x39a8cc]
lea ecx, [esp + 0x1c]
call dword [0x39aa78]
lea ebx, [esp + 0x18]
call fcn.0034db00
test al, al
jne 0x357979
lea ecx, [esp + 0x14]
call dword [0x39ad2c]
mov edi, dword [esp + 0x48]
mov esi, edi
test edi, edi
je 0x357946
call fcn.0034bd50
push esi
call fcn.0038b024
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, eax
test eax, eax
je 0x35795e
call fcn.00349f00
push esi
call fcn.0038b024
add esp, 4
lea ecx, [esp + 0x1c]
call dword [0x39ad2c]
lea ecx, [esp + 0x18]
call dword [0x39ad2c]
xor eax, eax
jmp 0x357efb
mov eax, dword [esp + 0xdc]
call fcn.00357f20
mov ebp, dword [0x39a1d0]
jmp 0x357990
push ecx
mov eax, esp
mov dword [eax], 0x3aa76c
lea eax, [esp + 0x1c]
mov dword [esp + 0xbc], esp
call fcn.0034cc00
test al, al
je 0x357ea8
mov ecx, dword [esp + 0x24]
xor esi, esi
lea edx, [esp + 0x18]
mov dword [esp + 0xb0], 0x39f91c
mov dword [esp + 0xb4], edx
cmp ecx, esi
je 0x3579fb
cmp dword [esp + 0x34], 1
jne 0x3579fb
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], ecx
mov bl, 2
push 0x3aa784
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], bl
call dword [0x39a8d8]
lea ecx, [esp + 0x64]
lea edi, [esp + 0x18]
lea edx, [esp + 0x98]
mov byte [esp + 0xd0], 3
call fcn.003576d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 4
call dword [0x39a8cc]
lea ecx, [esp + 0x98]
call dword [0x39ad2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], esi
je 0x357e43
push 0x30
call fcn.0038b246
add esp, 4
cmp eax, esi
je 0x357a84
mov esi, eax
call fcn.003575f0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 4]
call dword [0x39a8cc]
push 0x39cd30
lea ecx, [esp + 0x7c]
call dword [0x39a8d8]
lea ecx, [esp + 0x78]
lea edi, [esp + 0x18]
lea edx, [esp + 0x7c]
mov byte [esp + 0xd0], 5
call fcn.003576d0
push eax
lea ecx, [esi + 8]
mov byte [esp + 0xd4], 6
call dword [0x39a8cc]
lea ecx, [esp + 0x7c]
call dword [0x39ad2c]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa790
lea ecx, [esp + 0x78]
call dword [0x39a8d8]
lea ecx, [esp + 0x74]
lea edx, [esp + 0xac]
mov byte [esp + 0xd0], 7
call fcn.003576d0
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0xd4], 8
call dword [0x39a8cc]
lea ecx, [esp + 0xac]
call dword [0x39ad2c]
lea ecx, [esp + 0x74]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa7a4
lea ecx, [esp + 0x60]
call dword [0x39a8d8]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x88]
mov byte [esp + 0xd0], 9
call fcn.003576d0
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xd4], 0xa
call dword [0x39a8cc]
lea ecx, [esp + 0x88]
call dword [0x39ad2c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa7b8
lea ecx, [esp + 0x70]
call dword [0x39a8d8]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0xa0]
mov byte [esp + 0xd0], 0xb
call fcn.003576d0
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0xd4], 0xc
call dword [0x39a8cc]
lea ecx, [esp + 0xa0]
call dword [0x39ad2c]
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa7cc
lea ecx, [esp + 0x54]
call dword [0x39a8d8]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x90]
mov byte [esp + 0xd0], 0xd
call fcn.003576d0
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0xd4], 0xe
call dword [0x39a8cc]
lea ecx, [esp + 0x90]
call dword [0x39ad2c]
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa7d4
lea ecx, [esp + 0x58]
call dword [0x39a8d8]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x94]
mov byte [esp + 0xd0], 0xf
call fcn.003576d0
push eax
push esi
mov byte [esp + 0xd8], 0x10
call fcn.003577a0
lea ecx, [esp + 0x94]
call dword [0x39ad2c]
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa7e8
lea ecx, [esp + 0x5c]
call dword [0x39a8d8]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x9c]
mov byte [esp + 0xd0], 0x11
call fcn.003576d0
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0xd4], 0x12
call dword [0x39a8cc]
lea ecx, [esp + 0x9c]
call dword [0x39ad2c]
lea ecx, [esp + 0x58]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa7f8
lea ecx, [esp + 0x64]
call dword [0x39a8d8]
lea ecx, [esp + 0x60]
lea edx, [esp + 0x80]
mov byte [esp + 0xd0], 0x13
call fcn.003576d0
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0xd4], 0x14
call dword [0x39a8cc]
lea ecx, [esp + 0x80]
call dword [0x39ad2c]
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa808
lea ecx, [esp + 0x6c]
call dword [0x39a8d8]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x84]
mov byte [esp + 0xd0], 0x15
call fcn.003576d0
mov eax, dword [eax]
push eax
call ebp
add esp, 4
mov dword [esi + 0x28], eax
lea ecx, [esp + 0x84]
call dword [0x39ad2c]
lea ecx, [esp + 0x68]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
push 0x3aa81c
lea ecx, [esp + 0x74]
call dword [0x39a8d8]
lea ecx, [esp + 0x70]
lea edx, [esp + 0x8c]
mov byte [esp + 0xd0], 0x16
call fcn.003576d0
push 0x39d4ac
mov ecx, eax
mov byte [esp + 0xd4], 0x17
call dword [0x39a7e8]
neg eax
sbb eax, eax
inc eax
lea ecx, [esp + 0x8c]
mov dword [esi + 0x2c], eax
call dword [0x39ad2c]
lea ecx, [esp + 0x70]
mov byte [esp + 0xd0], bl
call dword [0x39ad2c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xa8]
call dword [0x39a8d4]
mov dword [esp + 0xa8], esi
mov ebx, dword [esp + 0xdc]
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0xd8], 0x18
call fcn.00358df0
lea ecx, [esp + 0xa4]
call dword [0x39ad2c]
xor esi, esi
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb0], 0x39f91c
cmp eax, esi
je 0x357990
mov edi, dword [esp + 0x4c]
mov edi, dword [edi]
mov edx, dword [esp + 0x24]
mov ecx, eax
mov esi, eax
and eax, 0xffff
sar esi, 0x10
mov esi, dword [edi + esi*4]
shl eax, 5
mov eax, dword [esi + eax + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x28], edx
xor edx, edx
cmp ecx, eax
setne dl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], edx
jmp 0x357990
lea ecx, [esp + 0x14]
call dword [0x39ad2c]
mov edi, dword [esp + 0x48]
mov esi, edi
test edi, edi
je 0x357eca
call fcn.0034bd50
push esi
call fcn.0038b024
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, eax
test eax, eax
je 0x357ee2
call fcn.00349f00
push esi
call fcn.0038b024
add esp, 4
lea ecx, [esp + 0x1c]
call dword [0x39ad2c]
lea ecx, [esp + 0x18]
call dword [0x39ad2c]
mov eax, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret