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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call fcn.0041a350
mov esi, dword [eax + 0x24]
cmp esi, dword [esp + 0x68]
jg 0x419156
mov edx, dword [eax + 0x28]
mov ebx, eax
cmp edx, dword [esp + 0x6c]
jg 0x419156
mov edi, dword [eax + 0x2c]
add edi, esi
cmp edi, dword [esp + 0x60]
jle 0x419156
mov eax, dword [eax + 0x30]
add eax, edx
cmp eax, dword [esp + 0x64]
jg 0x419160
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, dword [esp + 0x60]
cmovl esi, dword [esp + 0x60]
cmp edx, dword [esp + 0x64]
cmovl edx, dword [esp + 0x64]
sub edi, 1
cmp edi, dword [esp + 0x68]
cmovg edi, dword [esp + 0x68]
sub eax, 1
cmp eax, dword [esp + 0x6c]
cmovg eax, dword [esp + 0x6c]
mov dword [esp + 0x20], edx
mov ebp, edx
mov dword [esp + 0x1c], eax
call fcn.00418fe0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x419210
mov eax, dword [esp + 0x1c]
mov ecx, ebp
sub edi, esi
add edi, 1
imul esi, dword [ebx + 0x10]
sub eax, ebp
mov ebp, eax
mov eax, dword [ebx + 8]
add esi, dword [eax + ecx*4]
add ebp, 1
je 0x4191dd
nop
mov eax, dword [esp + 0x70]
mov dword [esp], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call dword [ebx + 0x64]
add esi, dword [ebx + 0x14]
sub ebp, 1
jne 0x4191c0
mov eax, dword [ebx + 8]
mov edx, dword [0x503ff4]
mov eax, dword [eax]
cmp dword [edx + 0x14], eax
je 0x4194b0
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.00419030
sub esp, 8
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x78], 0xffff
mov dword [esp + 0x3c], 0x8000
je 0x419358
mov eax, esi
mov ecx, esi
sub cl, byte [esp + 0x60]
mov byte [esp + 0x27], al
and ecx, 0xf
ror word [esp + 0x3c], cl
mov eax, edi
mov byte [esp + 0x26], al
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x28]
cmp dword [esp + 0x6c], eax
jge 0x419500
lea eax, [edi + 1]
cmp esi, edi
jg 0x4192a6
mov dword [esp + 0x28], esi
mov ebp, eax
mov dword [esp + 0x2c], edi
mov edi, ebx
mov ebx, dword [esp + 0x78]
lea esi, [esi]
nop
test dword [esp + 0x3c], ebx
je 0x419290
mov eax, dword [esp + 0x70]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call dword [edi + 0x5c]
ror word [esp + 0x3c], 1
add esi, 1
cmp esi, ebp
jne 0x419270
mov ebx, edi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
movzx eax, byte [esp + 0x68]
mov byte [esp + 0x28], al
mov ecx, eax
mov eax, edi
sub cl, byte [esp + 0x60]
add cl, byte [esp + 0x27]
sub ecx, eax
and ecx, 0xf
ror word [esp + 0x3c], cl
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x64], eax
jl 0x4194e0
lea ebp, [edi + 1]
cmp esi, edi
jg 0x41930c
mov edi, dword [esp + 0x78]
lea esi, [esi]
test dword [esp + 0x3c], edi
je 0x419300
mov eax, dword [esp + 0x70]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
call dword [ebx + 0x5c]
ror word [esp + 0x3c], 1
add esi, 1
cmp esi, ebp
jne 0x4192e0
mov ecx, dword [esp + 0x20]
movzx edx, byte [esp + 0x64]
mov eax, ecx
sub ecx, edx
add cl, byte [esp + 0x28]
sub cl, byte [esp + 0x26]
and ecx, 0xf
ror word [esp + 0x3c], cl
mov ecx, dword [ebx + 0x2c]
add ecx, dword [ebx + 0x24]
cmp dword [esp + 0x68], ecx
jl 0x4193cf
mov ecx, dword [esp + 0x1c]
mov esi, ecx
sub cl, byte [esp + 0x20]
add ecx, 1
and ecx, 0xf
ror word [esp + 0x3c], cl
jmp 0x419437
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x30]
add edx, eax
cmp dword [esp + 0x6c], edx
jge 0x419392
mov eax, edi
mov ecx, dword [esp + 0x6c]
sub eax, esi
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
imul eax, esi
add eax, dword [edx + ecx*4]
mov dword [esp], eax
call dword [ebx + 0x64]
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x64], eax
jl 0x4193bd
sub edi, esi
mov ecx, dword [esp + 0x64]
lea eax, [edi + 1]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
imul esi, dword [ebx + 0x10]
add esi, dword [eax + ecx*4]
mov dword [esp], esi
call dword [ebx + 0x64]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x2c]
add edx, eax
cmp dword [esp + 0x68], edx
jge 0x41944e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea esi, [eax + 1]
mov edi, edx
cmp edx, eax
jg 0x41941e
mov eax, ebx
mov ebp, dword [esp + 0x78]
mov ebx, edi
mov edi, eax
lea esi, [esi]
test dword [esp + 0x3c], ebp
je 0x419410
mov eax, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
call dword [edi + 0x5c]
ror word [esp + 0x3c], 1
add ebx, 1
cmp ebx, esi
jne 0x4193f0
mov ebx, edi
cmp dword [esp + 0x78], 0xffff
je 0x41944b
movzx eax, byte [esp + 0x20]
movzx edx, byte [esp + 0x64]
movzx esi, byte [esp + 0x1c]
add al, byte [esp + 0x6c]
mov ecx, esi
sub eax, edx
sub eax, ecx
mov ecx, eax
and ecx, 0xf
ror word [esp + 0x3c], cl
mov eax, dword [ebx + 0x24]
cmp dword [esp + 0x60], eax
jl 0x4191da
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x78]
lea esi, [eax + 1]
mov edi, edx
cmp edx, eax
jg 0x4191da
lea esi, [esi]
test dword [esp + 0x3c], ebp
je 0x419498
mov eax, dword [esp + 0x70]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call dword [ebx + 0x5c]
ror word [esp + 0x3c], 1
add edi, 1
cmp edi, esi
jne 0x419478
jmp 0x4191da
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 1
sub eax, ecx
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [edx + 0x38]
add eax, ecx
mov dword [esp], eax
call dword [0x432964]
jmp 0x4191ee
mov eax, edi
mov ecx, edi
mov byte [esp + 0x26], al
mov eax, esi
sub ecx, eax
add ecx, 1
and ecx, 0xf
ror word [esp + 0x3c], cl
jmp 0x41930c
mov ecx, edi
mov eax, esi
sub ecx, eax
add ecx, 1
and ecx, 0xf
ror word [esp + 0x3c], cl
jmp 0x4192a6