Function at 0x10052de0
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, 0x6d
add edi, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov ecx, 0x10081d88
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 0x10052e74
mov ebp, dword [esp + 0x48]
inc ebp
cmp eax, ebp
jl 0x10052e74
mov ebp, eax
imul ebp, ebp, 0x1b4
add ebp, ecx
mov dword [esp + 0x18], ebp
mov ebp, dword [ebp - 0xc8]
cmp ebp, 3
je 0x10052e60
cmp ebp, 4
jne 0x10052e74
mov ebp, dword [esp + 0x18]
lea edi, [ebp - 0x194]
mov ebp, dword [ebp - 0xc4]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x48]
add ebp, esi
cmp eax, ebp
mov dword [esp + 0x18], ebp
jl 0x10052eb3
mov ebp, eax
sub ebp, esi
imul ebp, ebp, 0x1b4
add ebp, ecx
mov dword [esp + 0x48], ebp
mov ebp, dword [ebp + 0xec]
cmp ebp, 3
je 0x10052ea2
cmp ebp, 4
jne 0x10052eb3
mov ebp, dword [esp + 0x48]
lea ebx, [ebp + 0x20]
mov ebp, dword [ebp + 0xf0]
mov dword [esp + 0x10], ebp
test edx, edx
je 0x10052ee5
mov edx, dword [esp + 0x18]
inc edx
cmp eax, edx
jl 0x10052ee5
mov edx, eax
sub edx, esi
imul edx, edx, 0x1b4
lea esi, [edx + ecx]
mov edx, dword [esi - 0xc8]
cmp edx, 3
je 0x10052edd
cmp edx, 4
jne 0x10052ee5
lea edx, [esi - 0x194]
jmp 0x10052ee9
mov edx, dword [esp + 0x1c]
imul eax, eax, 0x1b4
lea eax, [eax + ecx + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 5
ja case.default.0x10052f00
jmp dword [ecx*4 + 0x10053120]
test edi, edi
je 0x10052f12
add edi, 0x1e
mov dword [esp + 0x2c], edi
lea ecx, [ebx + 0x3c]
test ebx, ebx
jne 0x10052f1d
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
test edx, edx
je 0x10052ff2
lea edi, [edx + 0x5a]
jmp 0x10052ff6
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebp
test ebx, ebx
je 0x10052fea
lea ecx, [ebx + 0x5a]
lea edi, [ebx + 0x3c]
jmp 0x10052ff6
test edi, edi
je 0x10052f6d
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 0x10052ff6
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x10], ebp
jmp 0x10052ff6
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 0x10052ff6
test edi, edi
je 0x10052fa2
add edi, 0x78
mov dword [esp + 0x2c], edi
lea ecx, [ebx + 0x78]
test ebx, ebx
jne 0x10052fad
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
test edx, edx
je 0x10052ff2
lea edi, [edx + 0x78]
jmp 0x10052ff6
test edi, edi
je 0x10052fc8
add edi, 0x96
mov dword [esp + 0x2c], edi
lea ecx, [ebx + 0x96]
test ebx, ebx
jne 0x10052fd6
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
test edx, edx
je 0x10052ff2
lea edi, [edx + 0x96]
jmp 0x10052ff6
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edi, ecx
jmp 0x10052ff6
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 0x1005309e
mov dword [eax], 1
movzx edx, word [ecx]
test dx, dx
jle 0x1005303a
mov eax, esi
movsx edx, dx
sar eax, 1
add eax, edx
jmp 0x10053043
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 0x10053089
imul ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x1005307c
mov eax, ebp
sar eax, 1
add eax, ecx
cdq
idiv ebp
jmp 0x1005308b
mov edx, ebp
sar edx, 1
mov eax, ecx
sub eax, edx
cdq
idiv ebp
jmp 0x1005308b
xor eax, eax
mov word [esi], ax
add esi, 2
sub ebx, 1
jne 0x10053060
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 0x100530bb
mov eax, esi
movsx edx, cx
sar eax, 1
add eax, edx
jmp 0x100530c4
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 0x10053108
imul ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x100530fb
mov eax, ebp
sar eax, 1
add eax, ecx
cdq
idiv ebp
jmp 0x1005310a
mov edx, ebp
sar edx, 1
mov eax, ecx
sub eax, edx
cdq
idiv ebp
jmp 0x1005310a
xor eax, eax
mov word [ebx + esi*2], ax
inc esi
add edi, 2
cmp esi, 8
jb 0x100530e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret