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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401b20
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
mov ecx, dword [eax + edi + 0x18]
test ecx, ecx
je 0x40171f
mov dword [ebp - 0x48], eax
mov ebx, dword [eax + edi + 0x20]
add ebx, edi
dec ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
nop word [eax + eax]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebx]
add ebx, edi
xorps xmm0, xmm0
movsd qword [ebp - 0x34], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
push ebx
call fcn.00413ad0
add esp, 4
test eax, eax
js 0x40173d
mov esi, eax
cmp eax, 0xf
ja 0x4015d0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0xf
push esi
push ebx
lea edi, [ebp - 0x44]
push edi
call fcn.0040e2a0
add esp, 0xc
add esi, ebp
add esi, 0xffffffbc
mov dword [ebp - 0x10], 1
jmp 0x401651
mov eax, esi
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
cmp eax, 0xfff
mov dword [ebp - 0x20], ecx
jb 0x401620
mov dword [ebp - 0x10], 0xffffffff
cmp eax, 0xffffffdc
jae 0x401749
lea eax, [ecx + 0x24]
push eax
call fcn.00409a4e
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401635
lea eax, [ecx + 1]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.00409a4e
add esp, 4
mov edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
push esi
push ebx
push edi
call fcn.0040e2a0
add esp, 0xc
add esi, edi
lea edi, [ebp - 0x44]
mov byte [esi], 0
mov dword [ebp - 0x10], 1
push 0x235
push edi
call fcn.00401340
add esp, 8
mov esi, eax
cmp eax, dword [ebp + 0xc]
jne 0x4016c0
push str.uiAsnzAzijA921noq
push 0x485900
mov dword [ebp - 0x20], esi
call fcn.00401c20
add esp, 8
push eax
call fcn.00402120
mov esi, dword [ebp - 0x20]
add esp, 4
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + edi + 0x24]
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + eax]
mov ecx, dword [ecx + edi + 0x1c]
add ecx, edi
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x2c]
jmp 0x4016c9
mov ebx, dword [ebp - 0x2c]
add ebx, 4
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x401703
mov ecx, dword [ebp - 0x44]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x4016f9
mov dword [ebp - 0x20], esi
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x40174e
add eax, 0x24
mov edx, eax
mov ecx, esi
mov esi, dword [ebp - 0x20]
push edx
push ecx
call fcn.00409a40
add esp, 8
mov ecx, dword [ebp - 0x4c]
sub ecx, 1
setb al
cmp esi, dword [ebp + 0xc]
je 0x401726
add dword [ebp - 0x28], 2
test al, al
je 0x401570
jmp 0x401726
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
add eax, edi
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0xffffffff
call fcn.004028b0
call fcn.004028c0
mov dword [ebp - 0x10], 0
call fcn.00411cbf
nop word [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0040e227
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00402200
add esp, 0xc
pop ebp
ret