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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x60]
sub esi, eax
mov eax, dword [edi + 0x144]
sub ebx, ecx
shl eax, 1
mov ecx, esi
mov dword [esp + 0x1c], edi
sub ecx, eax
mov dword [esp + 0x10], ebx
lea eax, [ecx - 1]
cmp eax, 1
jge 0x48513e
mov eax, 1
push 8
lea ecx, [edi + 0xd8]
push 1
push eax
mov dword [esp + 0x50], ecx
call fcn.004c4ed0
mov edx, dword [edi + 0x144]
mov eax, ebx
shl edx, 1
sub eax, edx
cmp eax, 1
jge 0x485168
mov eax, 1
push 8
lea ecx, [edi + 0x10c]
push eax
push 1
mov dword [esp + 0x54], ecx
call fcn.004c4ed0
push 8
lea ecx, [edi + 8]
push ebx
push esi
mov dword [esp + 0x4c], ecx
call fcn.004c4ed0
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
push 0xf
mov dword [esp + 0x40], eax
call edi
push 0x10
mov ebx, eax
call edi
mov ecx, ebx
mov edi, eax
and ecx, 0xff
and edi, 0xff
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov cl, ah
xor edx, edx
mov ebp, ecx
xor ecx, ecx
mov cl, bh
and ebp, 0xff
shr eax, 0x10
and ecx, 0xff
and eax, 0xff
mov dword [esp + 0x34], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, ebp
neg ecx
mov dword [esp + 0x50], ecx
mov ecx, edi
shr ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x5c], edx
neg ecx
shl eax, 7
shl ebp, 7
shl edi, 7
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, edx
mov ecx, dword [esp + 0x24]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x18]
mov edi, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x2c]
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x40]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x5c]
mov ebx, eax
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
push ebp
push edi
push edx
call fcn.004c5030
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
push ebx
push ebp
push edi
push eax
call fcn.004c5030
mov ecx, dword [esp + 0x48]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.004c5030
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
add ebp, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
add ebx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x28]
add ebp, ecx
mov ecx, dword [esp + 0x2c]
inc edi
add ebx, edx
add ecx, eax
cmp edi, 0x81
mov dword [esp + 0x5c], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
jl 0x485226
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
neg eax
mov dword [esp + 0x44], eax
mov eax, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], 1
neg eax
mov dword [esp + 0x48], eax
mov eax, ecx
neg eax
mov dword [esp + 0x4c], eax
mov eax, edi
shl eax, 7
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, edx
shl eax, 7
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 7
sub eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x28]
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x1c]
cdq
and edx, 0x7f
add ecx, 8
add eax, edx
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov al, byte [esp + 0x5c]
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
add al, 0x7f
push ebp
push edi
push eax
mov byte [esp + 0x48], al
call fcn.004c5030
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push ebx
push ebp
push edi
push edx
lea ecx, [eax + 0xd8]
call fcn.004c5030
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push ecx
lea ecx, [edx + 0x10c]
call fcn.004c5030
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
add ebx, ecx
mov ecx, dword [esp + 0x4c]
add edi, edx
mov edx, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x14]
add ebp, edx
mov edx, dword [esp + 0x40]
inc eax
add ebx, ecx
add edi, edx
cmp eax, 0x81
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
jl 0x485381
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x1c]
and eax, 0xff
push eax
push ecx
lea ecx, [edi + 8]
call fcn.004c50d0
lea ecx, [edi + 0xd8]
call fcn.004c4eb0
mov edx, dword [edi + 0xe0]
xor ecx, ecx
test edx, edx
mov ebp, eax
jle 0x4854bd
mov eax, ecx
and eax, 0x80000001
jns 0x4854b3
dec eax
or eax, 0xfffffffe
inc eax
neg al
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jl 0x4854a5
lea ecx, [edi + 0x10c]
call fcn.004c4eb0
mov ebp, dword [edi + 0x118]
xor ecx, ecx
test ebp, ebp
jle 0x4854ef
mov edx, ecx
and edx, 0x80000001
jns 0x4854e3
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [eax], dl
add eax, 4
inc ecx
cmp ecx, ebp
jl 0x4854d4
mov eax, dword [edi + 0x34]
lea ebp, [edi + 8]
mov ecx, ebp
mov dword [esp + 0x78], eax
call fcn.004c4eb0
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
and ecx, 0xff
mov edi, eax
mov dword [esp + 0x14], ecx
mov ebx, 1
lea eax, [ecx + ecx]
cmp eax, 1
jl 0x485523
mov ebx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov edx, dword [esp + 0x6c]
mov ebx, eax
mov eax, 0xff
sub eax, ecx
dec edx
cmp edx, 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
ja case.default.0x48554a
jmp dword [edx*4 + 0x485da4]
push 0
mov ecx, ebp
call fcn.004c5230
mov eax, 0x7fff
mov dword [esp + 0x38], 0xc8
cdq
idiv esi
mov dword [esp + 0x54], eax
mov eax, 0x7fff
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x50], eax
call fcn.004c64a6
cdq
idiv dword [esp + 0x54]
mov dword [esp + 0x20], eax
call fcn.004c64a6
cdq
idiv dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
cmp esi, ebx
mov edi, eax
jge 0x4855a0
mov ebx, esi
call fcn.004c64a6
mov ecx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov ebx, eax
mov eax, ecx
cdq
idiv ebx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
call fcn.004c64a6
mov ecx, eax
mov eax, 0xa00a00a1
imul ecx
add edx, ecx
xor ebx, ebx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
test ebp, ebp
mov dword [esp + 0x7c], edx
jle 0x485657
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], edi
sub eax, edi
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
lea eax, [ecx + edi]
test eax, eax
jle 0x485619
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jge 0x485619
mov ecx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + 8]
call fcn.004c5080
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add ecx, edx
cmp ecx, esi
jge 0x485648
test edi, edi
jle 0x485648
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
mov ecx, ebx
push edi
sub ecx, eax
add ecx, esi
push ecx
lea ecx, [edx + 8]
call fcn.004c5080
mov edx, dword [esp + 0x70]
inc ebx
inc edx
dec edi
cmp ebx, ebp
mov dword [esp + 0x70], edx
jl 0x4855ef
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x48557c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
sub eax, edx
mov ecx, dword [esp + 0x10]
sub eax, 0x28
mov ebp, dword [esp + 0x5c]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x6c], eax
jle 0x485d5b
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], ecx
xor edi, edi
test esi, esi
jle 0x4856ee
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, ebx
ret
neg eax
imul ebx, esi
mov dword [esp + 0x54], eax
mov eax, ebx
mov cl, byte [esp + 0x7c]
cdq
idiv esi
mov dl, byte [edi + ebp]
add al, cl
add dl, al
mov byte [edi + ebp], dl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov cl, byte [edi + ebp]
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x54]
inc edi
add ebx, ecx
cmp edi, esi
jl 0x4856ba
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
add ebp, edi
add edx, eax
dec ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x5c], ecx
jne 0x485698
jmp 0x485d5b
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4857c2
mov ecx, dword [esp + 0x14]
mov eax, 0x40
sub eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cdq
idiv dword [esp + 0x10]
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
imul eax, dword [esp + 0x54]
shl eax, 1
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x48579f
mov byte [edi + ebp], bl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x48577f
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x6c], eax
jne 0x485739
mov eax, 0x2aaaaaab
mov dword [esp + 0x7c], 0x10
imul esi
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x10
jg 0x4857e1
mov dword [esp + 0x7c], edx
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x5c]
mov eax, edi
xor ecx, ecx
imul eax, edi
cdq
and edx, 3
mov dword [esp + 0x5c], ecx
add eax, edx
sar eax, 2
test edi, edi
mov dword [esp + 0x6c], eax
jle 0x485d5b
mov eax, edi
mov edi, dword [esp + 0x7c]
cdq
sub eax, edx
mov dword [esp + 0x28], ecx
sar eax, 1
imul edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
jmp 0x485829
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov ebp, ecx
sub edx, edi
sub ebp, eax
xor edi, edi
mov dword [esp + 0x50], edx
test esi, esi
jle 0x4858ee
mov eax, esi
mov dword [esp + 0x2c], edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x50]
imul eax, ebp
cdq
idiv dword [esp + 0x6c]
mov edx, dword [esp + 0x7c]
mov ebp, esi
sar ecx, 1
mov dword [esp + 0x4c], ecx
sub eax, edx
add eax, ecx
mov dword [esp + 0x38], eax
shl ebp, 7
jmp 0x485879
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov edx, edi
sub edx, ecx
cmp edx, eax
mov dword [esp + 0x20], edx
jle 0x48589d
mov eax, ebp
mov cl, byte [esp + 0x14]
cdq
idiv dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
add al, cl
mov byte [ebx + edi], al
mov eax, dword [esp + 0x38]
add eax, edx
test eax, eax
jge 0x4858b5
mov eax, dword [esp + 0x2c]
cdq
idiv dword [esp + 0x7c]
mov dl, byte [esp + 0x24]
sub dl, al
mov byte [ebx + edi], dl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov dl, byte [esp + 0x70]
mov cl, byte [ebx + edi]
sub ebp, 0x80
sub al, dl
add cl, al
mov byte [ebx + edi], cl
mov ecx, dword [esp + 0x2c]
inc edi
add ecx, 0x80
cmp edi, esi
mov dword [esp + 0x2c], ecx
jl 0x485871
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x28]
add ebx, edx
mov edx, dword [esp + 0x7c]
add edi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x28], edi
cmp ecx, edx
mov dword [esp + 0x5c], ecx
jl 0x485825
jmp 0x485d5b
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x485d5b
mov dword [esp + 0x7c], 0
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cdq
idiv ebx
mov ecx, eax
sub ecx, 0x7f
test esi, esi
jle 0x4859f5
mov eax, ecx
mov ebx, esi
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 7
mov dword [esp + 0x54], eax
mov eax, 0x80
sub eax, edx
shl ebx, 8
mov dword [esp + 0x6c], eax
sub ebx, esi
mov eax, ebx
cdq
idiv esi
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
mov ecx, dword [esp + 0x14]
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x54]
sar eax, 7
add eax, edx
imul eax, dword [esp + 0x6c]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
add eax, 0x80
cmp eax, ecx
jge 0x4859c1
mov eax, ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x4859cb
mov eax, ecx
mov byte [edi + ebp], al
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov dl, byte [esp + 0x70]
mov cl, byte [edi + ebp]
sub ebx, 0xff
sub al, dl
add cl, al
mov byte [edi + ebp], cl
inc ebp
cmp ebp, esi
jl 0x48597a
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
jne 0x485930
jmp 0x485d5b
test esi, esi
mov dword [esp + 0x7c], 0
jle 0x485d5b
mov edi, esi
mov ebp, 0x80
shl edi, 8
sub ebp, ecx
sub edi, esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x38], edi
mov eax, edi
cdq
idiv esi
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
imul eax, ebp
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x10]
sar ebx, 7
add ebx, 0x80
test eax, eax
jle 0x485abb
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x10]
lea edi, [eax + ecx]
mov byte [edi], bl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x78]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x485a92
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x7c]
sub edi, 0xff
inc eax
mov dword [esp + 0x38], edi
cmp eax, esi
mov dword [esp + 0x7c], eax
jl 0x485a43
jmp 0x485d5b
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x485d5b
mov eax, 0x80
mov dword [esp + 0x7c], 0
sub eax, ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cdq
idiv dword [esp + 0x10]
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
imul eax, dword [esp + 0x6c]
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x485b62
mov byte [edi + ebp], bl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x485b42
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
jne 0x485afe
jmp 0x485d5b
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x6c], eax
jle 0x485d5b
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], ecx
xor ebp, ebp
test esi, esi
jle 0x485c08
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x54], eax
mov eax, ebx
mov cl, byte [esp + 0x14]
cdq
idiv esi
add al, byte [esp + 0x7c]
add al, cl
mov byte [edi + ebp], al
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov dl, byte [esp + 0x70]
mov cl, byte [edi + ebp]
sub al, dl
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x54]
inc ebp
add ebx, ecx
cmp ebp, esi
jl 0x485bcf
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
add edi, ebx
add edx, eax
dec ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], ecx
jne 0x485bad
jmp 0x485d5b
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x485d5b
mov dword [esp + 0x7c], 0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
xor ebp, ebp
mov ebx, eax
add ebx, ecx
test esi, esi
jle 0x485c7d
mov byte [edi + ebp], bl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x485c5d
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
add edi, edx
mov edx, dword [esp + 0x6c]
add ecx, edx
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
jne 0x485c46
jmp 0x485d5b
sub eax, ecx
mov dword [esp + 0x7c], 0
test esi, esi
jle 0x485d5b
mov ecx, eax
neg ecx
imul eax, esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], eax
cdq
idiv esi
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
add ebx, edx
test eax, eax
jle 0x485d09
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x10]
lea edi, [eax + ecx]
mov byte [edi], bl
call fcn.004c64a6
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x78]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x485ce4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
inc edx
add eax, ecx
cmp edx, esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x6c], eax
jl 0x485cc2
jmp 0x485d5b
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x485d5b
mov dword [esp + 0x7c], eax
xor ebp, ebp
test esi, esi
jle 0x485d4a
call fcn.004c64a6
cdq
idiv ebx
sub al, byte [esp + 0x70]
add al, 0x80
mov byte [edi + ebp], al
inc ebp
cmp ebp, esi
jl 0x485d34
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
add edi, ecx
dec eax
mov dword [esp + 0x7c], eax
jne 0x485d2e
mov ebx, dword [esp + 0x1c]
lea edi, [ebx + 8]
lea ecx, [ebx + 0x70]
push edi
call fcn.004c51f0
lea esi, [ebx + 0xa4]
push edi
mov ecx, esi
call fcn.004c51f0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
and edx, 0xff
mov ecx, esi
push edx
push eax
call fcn.004c50d0
push esi
lea ecx, [ebx + 0x3c]
call fcn.004c51f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24