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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
mov ebx, dword [ebp + 0xc]
mov dword [eax + 8], 0x1011c134
mov dword [eax + 0xc], 1
and dword [eax], 0
mov dword [eax + 0x10], 0x1011abec
and dword [eax + 0x14], 0
push eax
push ebx
call fcn.100f31d0
pop ecx
pop edx
mov cl, 1
test al, al
jne 0x1005d596
mov eax, dword [ebp + 8]
lea edi, [esp + 8]
mov ecx, dword [eax + 0x108]
mov eax, dword [eax + 0x120]
and ecx, 0x1f
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], ecx
shr eax, cl
xor ecx, ecx
mov dword [esp + 0x7c], eax
cmp ecx, eax
je 0x1005d448
mov dword [esp + 0x84], ecx
call fcn.10083f52
mov ecx, dword [ebp + 8]
mov edx, eax
mov esi, eax
call fcn.1005ce39
test esi, esi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
je 0x1005d05f
shr edx, 0xa
cmp edx, 0x3ffffe
jbe 0x1005d069
mov dword [esp + 0x30], 0x1011c158
jmp 0x1005d071
mov dword [esp + 0x30], 0x1011c140
jmp 0x1005d071
mov dword [esp + 0x30], 0x1011c14c
mov dword [esp + 0x34], 1
and dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x1011abec
and dword [esp + 0x3c], 0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
lea eax, [esp + 0x58]
and dword [esp + 0x28], 0
mov dword [esp + 0x2c], 2
and dword [esp + 0x34], 0
xor ecx, ecx
mov dword [esp + 0x10], 0x1011c160
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x58], esi
mov byte [esp + 0x44], 3
mov dword [esp + 0x60], eax
inc ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x64], fcn.100473ff
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push edi
push ebx
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
mov eax, dword [esp + 0x8c]
mov ecx, eax
shr ecx, 0xa
cmp ecx, 0x3fffff
jb 0x1005d13d
and eax, 0x3ff
or eax, dword [esp + 0x88]
je 0x1005d186
mov dword [esp + 0x30], 0x1011c16c
mov dword [esp + 0x34], 2
and dword [esp + 0x28], 0
lea eax, [esp + 0x88]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 1
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x1005d880
push eax
push ebx
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
mov dword [esp + 0x30], 0x1011c180
mov dword [esp + 0x34], 1
and dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x1011abec
and dword [esp + 0x3c], 0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x90]
shl esi, cl
mov ecx, dword [eax + 0x104]
mov eax, esi
add eax, ecx
jb 0x1005d639
cmp dword [esp + 0x80], eax
jb 0x1005d625
mov eax, dword [ebp + 8]
inc dword [esp + 0x84]
and dword [esp + 0x2c], 0
and dword [esp + 0x28], 0
mov eax, dword [eax + 0x11c]
lea eax, [eax + esi*8]
lea ecx, [eax + ecx*8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
and dword [esp + 0x48], 0
and dword [esp + 0x50], 0
lea eax, [esp + 0x28]
push eax
push edi
call fcn.1005d64a
pop eax
pop ecx
mov eax, dword [esp + 8]
or eax, dword [esp + 0xc]
je 0x1005d3fe
mov eax, dword [esp + 0x50]
mov dl, byte [esp + 0x10]
mov dh, byte [esp + 0x11]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea ecx, [eax + 1]
test eax, eax
mov dword [esp + 0x50], ecx
je 0x1005d29e
mov dword [esp + 0x10], 0x1011c228
mov dword [esp + 0x14], 1
and dword [esp + 8], 0
mov dword [esp + 0x18], 0x1011abec
and dword [esp + 0x1c], 0
push edi
push dword [ebp + 0xc]
mov byte [esp + 0x80], dl
mov byte [esp + 0x2e], dh
call fcn.100f31d0
mov dh, byte [esp + 0x2e]
mov dl, byte [esp + 0x80]
add esp, 8
test al, al
jne 0x1005d594
mov eax, ebx
shr eax, 0xb
cmp dl, dh
jne 0x1005d2f2
mov dword [esp + 0x58], eax
lea eax, [esp + 7]
mov byte [esp + 7], dl
mov dword [esp + 0x10], 0x1011c234
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x64], 0x1007ea7a
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], fcn.100473ff
push 2
pop ecx
mov dword [esp + 0x14], ecx
and dword [esp + 8], 0
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push edi
jmp 0x1005d34c
mov dword [esp + 0x58], eax
lea eax, [esp + 0x27]
mov ecx, 0x1007ea7a
mov byte [esp + 0x27], dl
mov byte [esp + 7], dh
mov dword [esp + 0x68], 0x1011c248
mov dword [esp + 8], eax
lea eax, [esp + 7]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], fcn.100473ff
push 3
pop eax
mov dword [esp + 0x6c], eax
and dword [esp + 0x60], 0
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x60]
push eax
push dword [ebp + 0xc]
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
bt ebx, 0xa
jae 0x1005d399
mov dword [esp + 0x10], str.__MW_
mov dword [esp + 0x14], 1
and dword [esp + 8], 0
mov dword [esp + 0x18], 0x1011abec
and dword [esp + 0x1c], 0
push edi
push dword [ebp + 0xc]
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
and ebx, 0x3ff
mov eax, esi
or eax, ebx
je 0x1005d218
mov dword [esp + 0x10], 0x1011c16c
mov dword [esp + 0x14], 2
and dword [esp + 8], 0
lea eax, [esp + 0x60]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0x1005d99b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
push edi
push dword [ebp + 0xc]
call fcn.100f31d0
pop ecx
pop edx
test al, al
je 0x1005d218
jmp 0x1005d594
mov dword [esp + 0x30], 0x1011c188
mov dword [esp + 0x34], 1
and dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x1011abec
and dword [esp + 0x3c], 0
lea eax, [esp + 0x28]
push eax
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
jmp 0x1005d018
mov dword [esp + 0x30], 0x1011c188
mov dword [esp + 0x34], 1
and dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x1011abec
and dword [esp + 0x3c], 0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x12c]
mov ecx, dword [eax + 0x128]
shl ebx, 2
xor eax, eax
mov dword [esp + 0x78], ecx
dec eax
test ebx, ebx
je 0x1005d547
mov ecx, dword [esp + 0x78]
mov esi, eax
inc esi
mov ecx, dword [ecx + eax*4 + 4]
jne 0x1005d4e4
mov dword [esp + 0x30], str.START_ALL_:
mov dword [esp + 0x34], 2
and dword [esp + 0x28], 0
lea eax, [esp + 0x60]
mov dword [esp + 0x38], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], fcn.100473ff
jmp 0x1005d52a
mov dword [esp + 0x30], str.START_pattern:__:
mov dword [esp + 0x34], 3
and dword [esp + 0x28], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x60], ecx
mov ecx, fcn.100473ff
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 2
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0xc]
call fcn.100f31d0
pop ecx
pop edx
test al, al
jne 0x1005d594
add ebx, 0xfffffffc
mov eax, esi
jmp 0x1005d498
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], 0x1011c1e8
mov dword [esp + 0x34], 2
and dword [esp + 0x28], 0
lea ebx, [esp + 0x28]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], fcn.100473ff
push ebx
mov esi, dword [ebp + 0xc]
push esi
call fcn.100f31d0
pop ecx
pop edx
test al, al
je 0x1005d5a0
mov cl, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x114]
mov eax, dword [eax + 0x148]
mov dword [esp + 0x30], 0x1011c208
mov dword [esp + 0x34], 2
and dword [esp + 0x28], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], fcn.100473ff
push ebx
push esi
call fcn.100f31d0
pop ecx
pop edx
test al, al
mov cl, 1
jne 0x1005d596
mov dword [esp + 0x30], 0x1011c21c
mov dword [esp + 0x34], 1
and dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x1011abec
and dword [esp + 0x3c], 0
push ebx
push esi
call fcn.100f31d0
pop ecx
pop edx
mov ecx, eax
jmp 0x1005d596
push 0x1011c094
push dword [esp + 0x84]
push eax
call fcn.1010cb50
jmp 0x1005d645
push 0x1011c094
push eax
push esi
call fcn.1010cb70
add esp, 0xc
ud2