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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [esp + 0xf8], eax
test edx, edx
je 0x1005b02d
mov edi, edx
mov ebx, ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [edi + 8]
cmp eax, ecx
je 0x1005af4a
cmp byte [edi + 0xa], 0
jne 0x1005b331
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x1005af2c
jmp 0x1005b02d
movzx eax, byte [edi + 9]
cmp eax, dword [ebp + 0x10]
jne 0x1005af3e
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], edi
cmp dword [ebp + 0xc], 0
je 0x1005afff
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1005afff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
jle 0x1005af3e
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
xor esi, esi
mov dword [esp + 0x20], edx
test edx, edx
jle 0x1005afe8
lea eax, [esi + esi*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 0xc]
mov dword [esp + 8], eax
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edi, dword [eax + ecx*8 + 8]
xor eax, eax
movzx ebx, byte [edi + eax]
mov edx, dword [esp + 8]
movzx edx, byte [edx + eax]
cmp bl, dl
jne 0x1005afd1
test ebx, ebx
je 0x1005afff
inc eax
jmp 0x1005afba
mov bl, byte [ebx + 0x101b1828]
cmp bl, byte [edx + 0x101b1828]
je 0x1005afce
inc ecx
mov edx, dword [esp + 0x20]
cmp ecx, edx
jne 0x1005afb0
inc esi
cmp esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
jne 0x1005af9c
jmp 0x1005af3e
mov edi, dword [esp + 0x18]
cmp byte [edi + 0xa], 0
jne 0x1005b043
mov ebx, dword [esp + 0xc]
mov ecx, ebx
mov edx, edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1005b480
add esp, 0x10
mov ecx, dword [ebp + 8]
jmp 0x1005af3e
mov ecx, dword [esp + 0xf8]
xor ecx, ebp
call fcn.10157a00
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0xc]
cmp dword [ebx + 0x78], 0
mov ecx, dword [ebp + 8]
jne 0x1005af3e
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x88]
xorps xmm0, xmm0
lea esi, [esp + 0xa0]
movups xmmword [esi + 0x3c], xmm0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
lea edi, [esp + 0x50]
movaps xmmword [edi], xmm0
movaps xmmword [edi + 0x10], xmm0
movaps xmmword [edi + 0x20], xmm0
movaps xmmword [edi + 0x30], xmm0
movaps xmmword [edi + 0x40], xmm0
mov dword [esp + 0x14], eax
mov edx, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x24], ecx
push ebx
call fcn.100015a0
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [edi], 1
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], eax
mov dword [edi + 0x34], 0xffffffff
mov ecx, dword [esp + 0xc]
mov edx, esi
push ebx
call fcn.1002fbd0
add esp, 4
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x24], ebx
mov ebx, dword [esp + 0xc]
jne 0x1005b0f0
lea edx, [esp + 0xa0]
mov ecx, ebx
call fcn.100301d0
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x1005b104
mov ecx, dword [esp + 0x24]
call fcn.10021700
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 4]
xor eax, eax
cmp dword [esi], 0
mov edi, dword [esp + 0x18]
jle 0x1005b1d8
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
lea ebx, [ecx + ecx*4]
mov edx, dword [esi + ebx*4 + 8]
test edx, edx
mov dword [esp + 0x28], ecx
je 0x1005b34a
movzx eax, byte [edx]
cmp eax, 0xb4
je 0x1005b372
cmp eax, 0x8d
je 0x1005b355
xor eax, eax
mov edi, dword [esp + 0x10]
mov ecx, edi
push eax
push eax
call fcn.10001810
add esp, 8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
call fcn.1005d800
add esp, 4
cmp byte [edi + 0x57], 0
jne 0x1005b34e
mov edx, dword [esi + ebx*4 + 0xc]
test edx, edx
mov dword [esp + 8], ebx
mov ebx, esi
je 0x1005b1bb
mov esi, eax
mov eax, dword [eax]
lea edi, [eax + eax*4]
mov ecx, dword [esp + 0x10]
call fcn.10038840
mov dword [esi + edi*4 - 8], eax
mov eax, dword [esp + 8]
mov eax, dword [ebx + eax*4 + 0x14]
and eax, 3
mov ecx, dword [esi + edi*4]
and ecx, 0xfffffffc
or ecx, eax
mov eax, esi
mov dword [esi + edi*4], ecx
mov edx, ebx
mov ecx, dword [esp + 0x28]
inc ecx
cmp ecx, dword [edx]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov esi, edx
mov edx, dword [esp + 0x14]
jl 0x1005b124
cmp dword [ebx + 0x24], 0
jne 0x1005b30f
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
cmp dword [edx + 0x60], 0
mov esi, eax
jne 0x1005b208
mov eax, dword [esi]
mov dword [edx + 0x60], eax
mov eax, dword [ebx + 0x28]
lea ecx, [eax + 1]
mov dword [ebx + 0x28], ecx
mov dword [edx + 0x5c], eax
lea ecx, [esp + 0x30]
mov dword [ecx], ebx
mov eax, dword [ebp + 0x18]
mov dword [ecx + 8], eax
mov dword [ecx + 0x18], 0x400
mov al, byte [edi + 8]
mov byte [ebx + 0x9c], al
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x7c], eax
mov dword [esp + 8], esi
mov edx, esi
call fcn.10031420
test eax, eax
jne 0x1005b30b
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x57], 0
jne 0x1005b30b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov esi, dword [ebx + 0x2c]
lea eax, [ecx + esi]
add eax, 2
inc esi
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x64], esi
xor ebx, ebx
test ecx, ecx
mov edi, dword [esp + 0x20]
jle 0x1005b2b7
mov eax, dword [esp + 8]
lea edi, [eax + 8]
mov ebx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov edx, dword [edi]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0xc]
push ebx
call fcn.10053af0
add esp, 4
mov ecx, dword [esp + 0x28]
call fcn.10044010
cmp al, 0x45
je 0x1005b458
inc ebx
add edi, 0x14
mov ecx, dword [esp + 0x10]
dec ecx
jne 0x1005b27c
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea eax, [ebx + esi]
mov dword [esp + 0x10], eax
mov ecx, edi
mov edx, 0x61
push eax
push ebx
push esi
call fcn.10030110
add esp, 0xc
add ebx, esi
inc ebx
mov ecx, edi
mov edx, 0x7f
push 0
push ebx
mov esi, dword [esp + 0x1c]
push dword [esi + 0x5c]
call fcn.10030110
add esp, 0xc
mov ecx, edi
mov edx, 0x80
push ebx
push dword [esp + 0x14]
push dword [esi + 0x5c]
call fcn.10030110
add esp, 0xc
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test eax, eax
je 0x1005b31e
mov ecx, dword [esp + 0x24]
mov edx, eax
call fcn.10021700
mov byte [ebx + 0x9c], 0
mov dword [ebx + 0x7c], 0
jmp 0x1005b025
cmp ecx, 0x81
jne 0x1005af3e
cmp al, 0x7f
je 0x1005af4a
jmp 0x1005af3e
mov eax, dword [esp + 8]
mov edx, esi
jmp 0x1005b1bd
mov eax, dword [edx + 0x10]
cmp byte [eax], 0xb4
jne 0x1005b154
push str.RETURNING_may_not_use__TABLE.__wildcards
push dword [esp + 0x10]
call fcn.10046a40
add esp, 8
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 0x14]
cmp word [eax + 0x22], 0
jle 0x1005b473
mov dword [esp + 0x1c], 0
xor esi, esi
mov eax, dword [esp + 8]
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
test byte [eax + ecx + 0xe], 2
jne 0x1005b42d
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1005b451
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
and eax, 0x3fffffff
lea ecx, [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, ecx
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, 0x3b
push 0
push eax
call fcn.100389a0
add esp, 8
mov ecx, dword [esp + 0xc]
mov edx, ebx
push eax
call fcn.1005d800
add esp, 4
mov ebx, eax
cmp byte [edi + 0x57], 0
jne 0x1005b42d
mov edi, ebx
mov eax, dword [ebx]
lea eax, [eax + eax*4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx]
mov ecx, dword [esp + 0x10]
call fcn.10038840
mov ecx, dword [esp + 8]
mov dword [ebx + ecx*4 - 8], eax
and byte [ebx + ecx*4], 0xfc
mov ecx, esi
inc ecx
mov eax, dword [ebp + 0x14]
movsx eax, word [eax + 0x22]
add dword [esp + 0x1c], 0x10
mov esi, ecx
cmp ecx, eax
mov eax, ebx
mov edx, dword [esp + 0x2c]
jl 0x1005b392
jmp 0x1005b1bd
xor eax, eax
jmp 0x1005b3ca
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, 0x57
push eax
push eax
push ebx
call fcn.10030110
add esp, 0xc
jmp 0x1005b2a4
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x2c]
jmp 0x1005b1bd