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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
mov eax, dword [ebx + 0xa94]
imul esi, edi, 0x2c
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xa98]
mov dword [esp + 0x40], eax
lea eax, [ebx + 0x10df9]
push 0xb
add eax, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], eax
pop ebp
mov cl, byte [esi + ebx + 0x10df8]
mov edx, dword [esi + ebx + 0x10e08]
mov byte [esp + 0x13], cl
mov dword [esp + 0x34], 8
mov dword [esp + 0x18], 7
mov dword [esp + 0x1c], 6
mov dword [esp + 0x38], 3
mov dword [esp + 0x20], 9
test cl, cl
je 0x100311d8
dec edx
cmp byte [eax], 0
je 0x100311af
imul eax, dword [esi + ebx + 0x10dfc], 0x2c
cmp dword [esi + ebx + 0x10e00], 4
mov eax, dword [eax + ebx + 0x10df4]
jae 0x100311a1
cmp eax, dword [esp + 0x18]
mov edi, ebp
cmovl edi, dword [esp + 0x34]
jmp 0x100311b9
cmp eax, dword [esp + 0x18]
push 0xa
pop edi
cmovl edi, dword [esp + 0x18]
jmp 0x100311b9
imul eax, edx, 0x2c
mov edi, dword [eax + ebx + 0x10df4]
cmp edi, dword [esp + 0x20]
mov ecx, edi
mov eax, dword [esp + 0x1c]
cmovle eax, dword [esp + 0x38]
sub ecx, eax
xor eax, eax
cmp edi, 3
mov edi, dword [esp + 0x78]
cmovle ecx, eax
jmp 0x100311ee
imul eax, edx, 0x2c
mov ecx, dword [eax + ebx + 0x10df4]
lea eax, [ebx + 0x10df9]
add eax, esi
mov dword [esp + 0x3c], eax
lea eax, [edi - 1]
mov dword [esp + 0x14], 1
cmp edx, eax
jne 0x10031235
cmp dword [esi + ebx + 0x10e0c], 0
jne 0x10031212
cmp ecx, dword [esp + 0x18]
cmovl ebp, dword [esp + 0x20]
jmp 0x1003122c
cmp ecx, dword [esp + 0x20]
mov ebp, ecx
mov eax, dword [esp + 0x1c]
cmovle eax, dword [esp + 0x38]
sub ebp, eax
xor eax, eax
cmp ecx, dword [esp + 0x38]
cmovle ebp, eax
mov dword [esp + 0x2c], ebp
jmp 0x10031340
cmp byte [esp + 0x13], 0
je 0x1003126e
mov eax, dword [esp + 0x3c]
cmp byte [eax], 0
je 0x1003126e
mov eax, dword [esi + ebx + 0x10e00]
cmp ecx, 7
mov edx, dword [esi + ebx + 0x10dfc]
cmovl ebp, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
cmp eax, 4
jae 0x10031311
jmp 0x1003128e
mov eax, dword [esi + ebx + 0x10e0c]
mov dword [esp + 0x24], eax
cmp eax, 4
jae 0x10031302
cmp ecx, 7
cmovl ebp, dword [esp + 0x34]
mov dword [esp + 0x2c], ebp
imul ecx, edx, 0xb
add eax, ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x68]
mov eax, dword [ebx + eax*4 + 0x10e10]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
cmp dword [esp + 0x24], eax
jb 0x100312de
mov edi, dword [esp + 0x24]
add ebx, 0x10e10
imul edx, edx, 0x2c
push 4
pop esi
add edx, ebx
mov ebx, dword [esp + 0x68]
mov eax, dword [edx]
add edx, esi
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jbe 0x100312c6
mov ebx, dword [esp + 0x64]
cmp ecx, esi
mov esi, dword [esp + 0x30]
jae 0x10031340
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x68]
add edx, 0x4384
add edx, ecx
push 4
pop esi
lea edx, [ebx + edx*4]
mov eax, dword [edx]
add edx, esi
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, esi
jb 0x100312f4
jmp 0x1003133c
push 0xa
cmp ecx, 7
pop ebp
cmovl ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x68]
add eax, 0xfffffffc
mov edi, dword [esp + 0x68]
imul edx, edx, 0x2c
push 4
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
pop esi
add edx, 0x10e10
add edx, ebx
mov eax, dword [edx]
add edx, esi
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, esi
jb 0x10031330
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
lea edx, [esi + 0x10e10]
push 4
mov dword [esi + ebx + 0x10df4], ebp
xor ecx, ecx
add edx, ebx
pop esi
mov eax, dword [edi + ecx*4]
inc ecx
mov dword [edx], eax
add edx, esi
cmp ecx, esi
jb 0x10031358
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
lea eax, [edi + 0x623]
imul eax, eax, 0x2c
mov eax, dword [eax + ebx]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
mov dl, byte [eax]
sub eax, dword [ecx]
mov byte [esp + 0x12], dl
mov cl, byte [eax - 1]
mov eax, dword [ebx + 0xaa0]
and eax, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x24]
cmp ebp, dword [esp + 0x18]
mov dword [esp + 0x54], eax
movzx eax, dl
push eax
movzx eax, cl
push eax
setge al
mov byte [esp + 0x1b], cl
movzx eax, al
push eax
mov eax, dword [esp + 0x78]
movzx eax, byte [eax - 1]
push eax
push dword [esp + 0x84]
push ebx
call fcn.10030afe
mov edx, dword [esp + 0x6c]
mov ecx, eax
add ecx, dword [esp + 0x54]
add esp, 0x18
mov esi, dword [esp + 0x30]
movzx eax, word [ebx + edx*2 + 0x6aac]
shr eax, 4
movzx eax, byte [eax + 0x1004c568]
add eax, ecx
mov dword [esp + 0x44], eax
xor al, al
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x11], al
lea eax, [edi + 0x624]
imul eax, eax, 0x2c
mov dword [esp + 0x54], eax
cmp ecx, dword [eax + ebx]
jae 0x1003143a
mov dword [eax + ebx], ecx
mov al, byte [esp + 0x14]
mov dword [esi + ebx + 0x10e34], edi
or dword [esi + ebx + 0x10e38], 0xffffffff
mov byte [esi + ebx + 0x10e24], 0
mov byte [esp + 0x11], al
movzx eax, word [ebx + edx*2 + 0x6aac]
mov edx, 0x7f0
xor eax, edx
shr eax, 4
movzx ecx, byte [eax + 0x1004c568]
movzx eax, word [ebx + ebp*2 + 0x6c2c]
add ecx, dword [esp + 0x3c]
xor eax, edx
mov dl, byte [esp + 0x12]
shr eax, 4
mov dword [esp + 0x5c], ecx
movzx eax, byte [eax + 0x1004c568]
add eax, ecx
mov ch, byte [esp + 0x13]
mov dword [esp + 0x48], eax
cmp ch, dl
jne 0x100314d9
cmp dword [esi + ebx + 0x10e34], edi
jae 0x10031497
imul eax, edi, 0x2c
cmp dword [eax + ebx + 0x10e38], 0
je 0x100314d9
push dword [esp + 0x24]
push ebp
push ebx
call fcn.10030c67
mov ecx, dword [esp + 0x60]
add esp, 0xc
add eax, dword [esp + 0x48]
mov dl, byte [esp + 0x12]
cmp eax, dword [ecx + ebx]
ja 0x100314df
mov dword [ecx + ebx], eax
imul ecx, edi, 0x2c
mov dword [esi + ebx + 0x10e34], edi
and dword [ecx + ebx + 0x10e38], 0
mov byte [ecx + ebx + 0x10e24], 0
mov cl, byte [esp + 0x14]
jmp 0x100314e3
mov cl, byte [esp + 0x11]
jmp 0x100314e7
mov cl, byte [esp + 0x11]
mov ch, byte [esp + 0x13]
mov esi, dword [esp + 0x80]
push 2
pop eax
cmp esi, eax
jae 0x100314fe
mov eax, dword [esp + 0x70]
jmp 0x10031c99
mov eax, dword [esp + 0x7c]
cmp esi, eax
cmovb eax, esi
mov dword [esp + 0x54], eax
test cl, cl
jne 0x1003165c
cmp ch, dl
je 0x1003165c
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
inc eax
mov edx, dword [esp + 0x6c]
cmp esi, eax
cmovb eax, esi
push eax
push dword [esp + 0x18]
mov eax, edx
sub eax, dword [ecx]
dec eax
push eax
push edx
call fcn.1002f8a6
add esp, 0x10
mov esi, eax
mov dword [esp + 0x30], esi
push 2
lea eax, [esi - 1]
pop ecx
mov dword [esp + 0x4c], eax
cmp eax, ecx
jb 0x1003165c
cmp ebp, dword [esp + 0x20]
mov edx, ebp
mov eax, dword [esp + 0x1c]
cmovle eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0xaa0]
sub edx, eax
xor eax, eax
cmp ebp, dword [esp + 0x38]
cmovle edx, eax
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x50], edx
and ecx, eax
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [esp + 0x3c], ecx
movzx eax, word [ebx + eax*2 + 0x6aac]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x1004c568]
movzx eax, word [ebx + edx*2 + 0x6c2c]
lea edx, [esi + edi]
add ecx, dword [esp + 0x44]
xor eax, 0x7f0
mov esi, dword [esp + 0x70]
shr eax, 4
movzx eax, byte [eax + 0x1004c568]
add eax, ecx
mov dword [esp + 0x44], eax
cmp esi, edx
jae 0x100315f3
lea eax, [esi + 0x623]
mov dword [esp + 0x70], edx
imul eax, eax, 0x2c
mov ecx, edx
add eax, ebx
sub ecx, esi
lea eax, [eax + 0x2c]
mov dword [eax], 0x40000000
sub ecx, 1
jne 0x100315e5
push dword [esp + 0x3c]
push dword [esp + 0x54]
push 0
push ebx
call fcn.10030bab
imul ecx, dword [esp + 0x4c], 0x110
add esp, 0x10
mov edx, dword [esp + 0x30]
add edx, edi
add ecx, dword [esp + 0x4c]
add eax, dword [ebx + ecx*4 + 0xbd54]
lea ecx, [edx + 0x623]
add eax, dword [esp + 0x44]
imul ecx, ecx, 0x2c
cmp eax, dword [ecx + ebx]
jae 0x1003165c
mov dword [ecx + ebx], eax
lea eax, [edi + 1]
imul ecx, edx, 0x2c
and dword [ecx + ebx + 0x10e0c], 0
mov dword [ecx + ebx + 0x10e08], eax
mov eax, dword [esp + 0x14]
mov byte [ecx + ebx + 0x10df8], al
mov byte [ecx + ebx + 0x10df9], 0
push 2
pop eax
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
sub eax, dword [esi + ecx*4]
mov dword [esp + 0x50], eax
lea esi, [eax - 1]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], esi
mov al, byte [eax]
cmp al, byte [esi]
mov esi, dword [esp + 0x70]
jne 0x1003195d
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x50]
mov al, byte [eax + 1]
cmp al, byte [esi]
mov esi, dword [esp + 0x70]
jne 0x1003195d
push dword [esp + 0x54]
push 2
pop eax
push eax
push dword [esp + 0x40]
push dword [esp + 0x78]
call fcn.1002f8a6
add esp, 0x10
mov dword [esp + 0x50], eax
lea edx, [eax + edi]
cmp esi, edx
jae 0x100316ef
lea ecx, [esi + 0x623]
imul ecx, ecx, 0x2c
add ecx, ebx
sub edx, esi
lea esi, [eax + edi]
mov dword [esp + 0x70], esi
lea ecx, [ecx + 0x2c]
mov dword [ecx], 0x40000000
sub edx, 1
jne 0x100316e1
push dword [esp + 0x24]
mov esi, dword [esp + 0x24]
push ebp
push esi
push ebx
mov dword [esp + 0x40], eax
call fcn.10030bab
add eax, dword [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push 2
pop ebp
lea ecx, [eax + 0x623]
add ecx, edi
imul edx, ecx, 0x2c
imul ecx, dword [esp + 0x24], 0x110
add edx, ebx
add ecx, 0x2f55
add ecx, eax
lea ecx, [ebx + ecx*4]
mov dword [esp + 0x50], ecx
mov ebx, ecx
mov ecx, dword [ebx]
add ecx, dword [esp + 0x44]
cmp ecx, dword [edx]
jae 0x10031751
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 8], esi
mov byte [edx - 0xc], 0
dec eax
sub ebx, 4
sub edx, 0x2c
cmp eax, ebp
jae 0x1003173b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
inc eax
mov ecx, dword [esp + 0x7c]
test esi, esi
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x2c]
cmove edx, eax
mov esi, dword [esp + 0x70]
add ecx, eax
cmp dword [esp + 0x80], ecx
mov dword [esp + 0x1c], edx
cmovb ecx, dword [esp + 0x80]
cmp eax, ecx
jae 0x100317a9
push ecx
push eax
push dword [esp + 0x40]
push dword [esp + 0x78]
call fcn.1002f8a6
mov edx, dword [esp + 0x2c]
add esp, 0x10
or ecx, 0xffffffff
mov dword [esp + 0x50], eax
sub ecx, dword [esp + 0x30]
add eax, ecx
push 2
pop ecx
mov dword [esp + 0x58], eax
cmp eax, ecx
jb 0x10031959
cmp ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov edi, dword [ebx + 0xaa0]
push 5
pop ecx
cmovl eax, ecx
push 2
pop esi
cmovl ecx, esi
mov esi, dword [esp + 0x74]
cmovl ecx, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x30]
add esi, ecx
lea eax, [esi + 1]
and eax, edi
mov dword [esp + 0x3c], eax
movzx eax, byte [ecx + edx]
push eax
mov eax, dword [esp + 0x3c]
movzx eax, byte [ecx + eax]
push eax
push dword [esp + 0x1c]
movzx eax, byte [ecx + edx - 1]
push eax
push esi
push ebx
call fcn.10030afe
mov edx, eax
and esi, edi
mov ecx, 0x3606
mov edi, dword [esp + 0x90]
add esp, 0x18
cmp ebp, dword [esp + 0x18]
lea eax, [ecx - 0x30]
cmovl ecx, eax
add esi, ecx
movzx ecx, word [ebx + esi*2]
mov esi, dword [esp + 0x4c]
shr ecx, 4
movzx eax, byte [ecx + 0x1004c568]
mov ecx, 0x7f0
add edx, eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x3c]
movzx eax, word [ebx + eax*2 + 0x6aac]
xor eax, ecx
shr eax, 4
movzx eax, byte [eax + 0x1004c568]
add edx, eax
movzx eax, word [ebx + esi*2 + 0x6c2c]
mov esi, dword [esp + 0x70]
xor eax, ecx
shr eax, 4
movzx eax, byte [eax + 0x1004c568]
add edx, eax
imul eax, dword [esp + 0x24], 0x110
add eax, dword [esp + 0x30]
add edx, dword [ebx + eax*4 + 0xbd54]
add dword [esp + 0x44], edx
mov edx, dword [esp + 0x50]
add edx, edi
cmp esi, edx
jae 0x100318d3
lea eax, [esi + 0x623]
mov ecx, edx
imul eax, eax, 0x2c
add eax, ebx
sub ecx, esi
mov esi, edx
mov dword [esp + 0x70], esi
lea eax, [eax + 0x2c]
mov dword [eax], 0x40000000
sub ecx, 1
jne 0x100318c3
jmp 0x100318d7
mov esi, dword [esp + 0x70]
push dword [esp + 0x3c]
push dword [esp + 0x50]
push 0
push ebx
call fcn.10030bab
imul ecx, dword [esp + 0x4c], 0x110
add esp, 0x10
mov edx, dword [esp + 0x50]
add edx, edi
add ecx, dword [esp + 0x58]
add eax, dword [ebx + ecx*4 + 0xbd54]
lea ecx, [edx + 0x623]
add eax, dword [esp + 0x44]
imul ecx, ecx, 0x2c
cmp eax, dword [ecx + ebx]
jae 0x10031955
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x30]
imul ecx, edx, 0x2c
inc eax
add eax, edi
and dword [ecx + ebx + 0x10e0c], 0
mov dword [ecx + ebx + 0x10e08], eax
mov eax, dword [esp + 0x14]
mov byte [ecx + ebx + 0x10df8], al
mov byte [ecx + ebx + 0x10df9], al
mov eax, dword [esp + 0x20]
mov dword [ecx + ebx + 0x10dfc], edi
mov dword [ecx + ebx + 0x10e00], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 4
jb 0x1003166b
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x40], ecx
jbe 0x100319a1
and dword [esp + 0x28], 0
lea eax, [ebx + 0x204]
mov dword [esp + 0x40], ecx
jmp 0x1003198d
inc dword [esp + 0x28]
lea eax, [eax + 8]
cmp ecx, dword [eax]
ja 0x10031986
mov eax, dword [esp + 0x28]
mov dword [ebx + eax*8 + 0x204], ecx
inc eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x40]
cmp ecx, edx
jb 0x10031c97
movzx eax, word [ebx + ebp*2 + 0x6c2c]
lea esi, [ecx + edi]
mov ecx, dword [esp + 0x70]
shr eax, 4
movzx eax, byte [eax + 0x1004c568]
add dword [esp + 0x5c], eax
cmp ecx, esi
jae 0x100319f1
lea eax, [ecx + 0x623]
mov dword [esp + 0x70], esi
imul eax, eax, 0x2c
mov edx, esi
add eax, ebx
sub edx, ecx
lea eax, [eax + 0x2c]
mov dword [eax], 0x40000000
sub edx, 1
jne 0x100319e1
jmp 0x100319f5
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x204]
xor edx, edx
mov dword [esp + 0x40], edx
cmp ecx, dword [eax]
jbe 0x10031a15
lea eax, [eax + 8]
inc edx
cmp ecx, dword [eax]
ja 0x10031a09
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x1c]
lea edx, [edx*8 + 0x204]
add eax, 0x623
add edx, ebx
add eax, edi
mov dword [esp + 0x3c], edx
imul eax, eax, 0x2c
inc ecx
add eax, ebx
push dword [esp + 0x24]
mov edx, dword [edx + 4]
mov dword [esp + 0x3c], eax
lea eax, [ecx - 1]
push eax
push edx
push ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x64], eax
call fcn.10030a36
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x38]
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
cmp ecx, dword [eax]
jae 0x10031a7d
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
add ecx, 4
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov byte [eax - 0xc], 0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
cmp ecx, dword [edx]
jne 0x10031c8a
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
dec eax
mov ecx, dword [esp + 0x7c]
add ecx, edx
mov dword [esp + 0x50], eax
cmp dword [esp + 0x80], ecx
mov eax, edx
cmovb ecx, dword [esp + 0x80]
cmp edx, ecx
jae 0x10031acf
push ecx
push edx
push dword [esp + 0x58]
push dword [esp + 0x78]
call fcn.1002f8a6
mov edx, dword [esp + 0x78]
add esp, 0x10
or ecx, 0xffffffff
mov dword [esp + 0x4c], eax
sub ecx, dword [esp + 0x54]
add eax, ecx
push 2
pop ecx
mov dword [esp + 0x48], eax
cmp eax, ecx
jb 0x10031c6b
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov edi, dword [ebx + 0xaa0]
dec ecx
add ecx, edx
mov esi, edi
movzx eax, byte [edx + eax - 1]
and esi, ecx
push eax
mov eax, dword [esp + 0x54]
movzx eax, byte [edx + eax - 1]
push eax
mov eax, dword [esp + 0x74]
push dword [esp + 0x1c]
movzx eax, byte [edx + eax - 2]
push eax
push ecx
push ebx
call fcn.10030afe
add esp, 0x18
mov ecx, 0x35f6
cmp ebp, 7
lea edx, [ecx - 0x30]
cmovl ecx, edx
add eax, dword [esp + 0x58]
add ecx, esi
push 4
movzx ecx, word [ebx + ecx*2]
shr ecx, 4
movzx edx, byte [ecx + 0x1004c568]
add edx, eax
mov eax, dword [esp + 0x1c]
cmp ebp, eax
pop ecx
cmovl eax, ecx
cmp ebp, 7
cmovl ecx, dword [esp + 0x14]
cmovl ecx, eax
mov dword [esp + 0x54], ecx
lea ecx, [esi + 1]
mov esi, dword [esp + 0x54]
and ecx, edi
mov eax, esi
mov dword [esp + 0x50], ecx
shl eax, 4
mov edi, 0x7f0
add eax, ecx
movzx eax, word [ebx + eax*2 + 0x6aac]
xor eax, edi
shr eax, 4
movzx ecx, byte [eax + 0x1004c568]
movzx eax, word [ebx + esi*2 + 0x6c2c]
add ecx, edx
mov edx, dword [esp + 0x4c]
xor eax, edi
mov edi, dword [esp + 0x78]
add edx, edi
mov esi, dword [esp + 0x70]
shr eax, 4
movzx eax, byte [eax + 0x1004c568]
add eax, ecx
mov dword [esp + 0x58], eax
cmp esi, edx
jae 0x10031be7
lea eax, [esi + 0x623]
mov ecx, edx
imul eax, eax, 0x2c
add eax, ebx
sub ecx, esi
mov esi, edx
mov dword [esp + 0x70], esi
lea eax, [eax + 0x2c]
mov dword [eax], 0x40000000
sub ecx, 1
jne 0x10031bd7
jmp 0x10031beb
mov esi, dword [esp + 0x70]
push dword [esp + 0x50]
push dword [esp + 0x58]
push 0
push ebx
call fcn.10030bab
imul ecx, dword [esp + 0x60], 0x110
add esp, 0x10
mov edx, dword [esp + 0x4c]
add edx, edi
add ecx, dword [esp + 0x48]
add eax, dword [ebx + ecx*4 + 0xbd54]
lea ecx, [edx + 0x623]
add eax, dword [esp + 0x58]
imul ecx, ecx, 0x2c
cmp eax, dword [ecx + ebx]
jae 0x10031c6b
mov dword [ecx + ebx], eax
mov eax, dword [esp + 0x68]
imul ecx, edx, 0x2c
add eax, edi
and dword [ecx + ebx + 0x10e0c], 0
mov dword [ecx + ebx + 0x10e08], eax
mov eax, dword [esp + 0x14]
mov byte [ecx + ebx + 0x10df8], al
mov byte [ecx + ebx + 0x10df9], al
mov eax, dword [esp + 0x64]
add eax, 4
mov dword [ecx + ebx + 0x10dfc], edi
mov dword [ecx + ebx + 0x10e00], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
inc eax
add edx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
cmp eax, dword [esp + 0x28]
je 0x10031c97
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
add eax, 0x2c
inc ecx
jmp 0x10031a33
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret