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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
imul eax, esi
push edi
add eax, edx
mov edi, eax
imul edi, edi, 0x7a
add edi, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov ecx, 0x1033c0d0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
lea edi, [ecx + edi*4 + 0xd4]
mov dword [esp + 0x24], edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], edi
cmp edx, edi
je 0x1011f0d4
mov ebp, dword [esp + 0x48]
inc ebp
cmp eax, ebp
jl 0x1011f0d4
mov ebp, eax
imul ebp, ebp, 0x1e8
add ebp, ecx
mov dword [esp + 0x18], ebp
mov ebp, dword [ebp - 0xfc]
cmp ebp, 3
je 0x1011f0c0
cmp ebp, 4
jne 0x1011f0d4
mov ebp, dword [esp + 0x18]
lea edi, [ebp - 0x1c8]
mov ebp, dword [ebp - 0xf8]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x48]
add ebp, esi
cmp eax, ebp
mov dword [esp + 0x18], ebp
jl 0x1011f113
mov ebp, eax
sub ebp, esi
imul ebp, ebp, 0x1e8
add ebp, ecx
mov dword [esp + 0x48], ebp
mov ebp, dword [ebp + 0xec]
cmp ebp, 3
je 0x1011f102
cmp ebp, 4
jne 0x1011f113
mov ebp, dword [esp + 0x48]
lea ebx, [ebp + 0x20]
mov ebp, dword [ebp + 0xf0]
mov dword [esp + 0x10], ebp
test edx, edx
je 0x1011f145
mov edx, dword [esp + 0x18]
inc edx
cmp eax, edx
jl 0x1011f145
mov edx, eax
sub edx, esi
imul edx, edx, 0x1e8
lea esi, [edx + ecx]
mov edx, dword [esi - 0xfc]
cmp edx, 3
je 0x1011f13d
cmp edx, 4
jne 0x1011f145
lea edx, [esi - 0x1c8]
jmp 0x1011f149
mov edx, dword [esp + 0x1c]
imul eax, eax, 0x1e8
lea eax, [eax + ecx + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 5
ja case.default.0x1011f160
jmp dword [ecx*4 + 0x1011f380]
test edi, edi
je 0x1011f172
add edi, 0x1e
mov dword [esp + 0x2c], edi
lea ecx, [ebx + 0x3c]
test ebx, ebx
jne 0x1011f17d
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
test edx, edx
je 0x1011f252
lea edi, [edx + 0x5a]
jmp 0x1011f256
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebp
test ebx, ebx
je 0x1011f24a
lea ecx, [ebx + 0x5a]
lea edi, [ebx + 0x3c]
jmp 0x1011f256
test edi, edi
je 0x1011f1cd
mov ebp, dword [esp + 0x3c]
lea ecx, [edi + 0x5a]
mov dword [esp + 0x2c], ecx
add edi, 0x1e
mov ecx, eax
mov dword [esp + 0x10], ebp
jmp 0x1011f256
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x10], ebp
jmp 0x1011f256
mov ebp, dword [esp + 0x3c]
lea edx, [eax + 0x3c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0x1e]
mov dword [esp + 0x10], ebp
mov edi, eax
jmp 0x1011f256
test edi, edi
je 0x1011f202
add edi, 0x78
mov dword [esp + 0x2c], edi
lea ecx, [ebx + 0x78]
test ebx, ebx
jne 0x1011f20d
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
test edx, edx
je 0x1011f252
lea edi, [edx + 0x78]
jmp 0x1011f256
test edi, edi
je 0x1011f228
add edi, 0x96
mov dword [esp + 0x2c], edi
lea ecx, [ebx + 0x96]
test ebx, ebx
jne 0x1011f236
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
test edx, edx
je 0x1011f252
lea edi, [edx + 0x96]
jmp 0x1011f256
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edi, ecx
jmp 0x1011f256
mov edi, dword [esp + 0x30]
movsx esi, word [edi]
mov eax, dword [esp + 0x2c]
movsx eax, word [eax]
sub eax, esi
cdq
mov edi, eax
xor edi, edx
sub edi, edx
movsx edx, word [ecx]
mov eax, esi
mov esi, dword [esp + 0x40]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
mov eax, dword [esp + 0x24]
jge 0x1011f2fe
mov dword [eax], 1
movzx edx, word [ecx]
test dx, dx
jle 0x1011f29a
mov eax, esi
movsx edx, dx
sar eax, 1
add eax, edx
jmp 0x1011f2a3
mov edi, esi
movsx eax, dx
sar edi, 1
sub eax, edi
cdq
idiv esi
mov edx, dword [esp + 0x44]
mov edi, ecx
lea esi, [edx + 2]
sub edi, edx
mov ebx, 7
mov word [edx], ax
lea esp, [esp]
movsx ecx, word [edi + esi]
test ecx, ecx
je 0x1011f2e9
imul ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x1011f2dc
mov eax, ebp
sar eax, 1
add eax, ecx
cdq
idiv ebp
jmp 0x1011f2eb
mov edx, ebp
sar edx, 1
mov eax, ecx
sub eax, edx
cdq
idiv ebp
jmp 0x1011f2eb
xor eax, eax
mov word [esi], ax
add esi, 2
sub ebx, 1
jne 0x1011f2c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x2c]
mov dword [eax], 2
movzx ecx, word [ecx]
test cx, cx
jle 0x1011f31b
mov eax, esi
movsx edx, cx
sar eax, 1
add eax, edx
jmp 0x1011f324
mov edx, esi
movsx eax, cx
sar edx, 1
sub eax, edx
cdq
idiv esi
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
mov esi, 1
add edi, 0x10
mov word [ebx], ax
lea ebx, [ebx]
movsx ecx, word [edi]
test ecx, ecx
je 0x1011f368
imul ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x1011f35b
mov eax, ebp
sar eax, 1
add eax, ecx
cdq
idiv ebp
jmp 0x1011f36a
mov edx, ebp
sar edx, 1
mov eax, ecx
sub eax, edx
cdq
idiv ebp
jmp 0x1011f36a
xor eax, eax
mov word [ebx + esi*2], ax
inc esi
add edi, 2
cmp esi, 8
jb 0x1011f340
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret