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

Disassembly:
sub esp, 0x48
mov edx, dword [esp + 0x50]
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 + 0x5c]
sub ebx, edx
sub esi, ecx
mov dword [esp + 0x10], ebx
cmp esi, 1
mov eax, 1
jl 0x40cedd
mov eax, esi
push 8
lea ecx, [edi + 0x24c]
push 1
push eax
mov dword [esp + 0x3c], ecx
call fcn.004013b0
cmp ebx, 1
mov eax, 1
jl 0x40cefd
mov eax, ebx
push 8
lea ecx, [edi + 0x290]
push eax
push 1
mov dword [esp + 0x40], ecx
call fcn.004013b0
push 8
lea ecx, [edi + 0x208]
push ebx
push esi
mov dword [esp + 0x28], ecx
call fcn.004013b0
mov eax, dword [edi + 0x1fc]
mov ecx, dword [edi + 0x204]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x200]
mov edx, eax
mov edi, ecx
and edx, 0xff
and edi, 0xff
mov dword [esp + 0x40], edx
xor edx, edx
mov dl, ch
xor ebx, ebx
mov ebp, edx
xor edx, edx
mov dl, ah
and ebp, 0xff
shr eax, 0x10
shr ecx, 0x10
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x38], eax
mov eax, ecx
neg eax
mov dword [esp + 0x4c], eax
mov eax, ebp
neg eax
mov dword [esp + 0x48], eax
mov eax, edi
and edx, 0xff
mov dword [esp + 0x5c], ebx
neg eax
shl ecx, 7
shl ebp, 7
shl edi, 7
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x28]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, edx
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x2c]
mov ebp, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x1c]
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x5c]
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
push ebp
push edi
push eax
call fcn.004016b0
mov ecx, dword [esp + 0x5c]
push ebx
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004016b0
mov ecx, dword [esp + 0x34]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.004016b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
add ebx, edx
mov edx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
add ebp, edx
mov edx, dword [esp + 0x2c]
inc edi
add ebx, eax
add edx, ecx
cmp edi, 0x81
mov dword [esp + 0x5c], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
jl 0x40cfbc
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
neg eax
mov dword [esp + 0x38], eax
mov eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x5c], 1
neg eax
mov dword [esp + 0x44], eax
mov eax, ecx
neg eax
mov dword [esp + 0x48], 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 edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add eax, edx
mov ecx, dword [esp + 0x20]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x28]
mov edi, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x14]
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
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 + 0x50], al
call fcn.004016b0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
push ebx
push ebp
push edi
push edx
call fcn.004016b0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
push ebx
push ebp
push edi
push eax
call fcn.004016b0
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
add ebx, ecx
mov ecx, dword [esp + 0x48]
add edi, edx
mov edx, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x44]
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 + 0x54]
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 0x40d117
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x1c]
and eax, 0xff
push eax
push ecx
mov ecx, ebp
call fcn.00401530
mov edi, dword [esp + 0x30]
mov ecx, edi
call fcn.004014e0
mov ecx, edi
mov ebx, eax
call fcn.00401500
xor ecx, ecx
test eax, eax
jle 0x40d245
mov edx, ecx
and edx, 0x80000001
jns 0x40d23b
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [ebx + ecx], dl
inc ecx
cmp ecx, eax
jl 0x40d22c
mov ebx, dword [esp + 0x34]
mov ecx, ebx
call fcn.004014e0
mov ecx, ebx
mov edi, eax
call fcn.00401510
xor ecx, ecx
test eax, eax
jle 0x40d27a
mov edx, ecx
and edx, 0x80000001
jns 0x40d26e
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [edi], dl
add edi, 4
inc ecx
cmp ecx, eax
jl 0x40d25f
mov ecx, ebp
call fcn.00401520
mov ecx, ebp
mov dword [esp + 0x74], eax
call fcn.004014e0
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 0x40d2af
mov ebx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov edx, dword [esp + 0x6c]
add edx, 0xfffffff9
mov ebx, eax
mov eax, 0xff
sub eax, ecx
cmp edx, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
ja case.default.0x40d2d8
jmp dword [edx*4 + 0x40db24]
push 0
mov ecx, ebp
call fcn.00401620
mov eax, 0x7fff
mov dword [esp + 0x40], 0xc8
cdq
idiv esi
mov dword [esp + 0x54], eax
mov eax, 0x7fff
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x50], eax
call fcn.00435d39
cdq
idiv dword [esp + 0x54]
mov dword [esp + 0x20], eax
call fcn.00435d39
cdq
idiv dword [esp + 0x50]
mov edi, dword [esp + 0x10]
cmp esi, edi
mov ebp, eax
jge 0x40d32e
mov edi, esi
call fcn.00435d39
mov ecx, eax
mov eax, 0x7fff
cdq
idiv edi
mov edi, eax
mov eax, ecx
cdq
idiv edi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00435d39
mov ecx, eax
mov eax, 0xa00a00a1
imul ecx
add edx, ecx
xor edi, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
test ebx, ebx
mov dword [esp + 0x78], edx
jle 0x40d3ee
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], ebp
sub ecx, ebp
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x70]
lea eax, [ecx + edx]
test eax, eax
jle 0x40d3ad
mov edx, dword [esp + 0x10]
lea eax, [edi + ebp]
cmp eax, edx
jge 0x40d3ad
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
sub edx, edi
push eax
push edx
call fcn.00401660
mov ecx, dword [esp + 0x6c]
lea eax, [ecx + ebp]
add eax, edi
cmp eax, esi
jge 0x40d3e0
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x40d3e0
mov ecx, dword [esp + 0x78]
mov eax, edi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, ebp
sub eax, ecx
mov ecx, dword [esp + 0x20]
sub edx, edi
add eax, esi
push edx
push eax
call fcn.00401660
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
inc edi
dec edx
cmp edi, ebx
mov dword [esp + 0x70], edx
jl 0x40d37d
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x40d30a
mov eax, dword [esp + 0x2c]
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 case.default.0x40d2d8
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], ecx
xor edi, edi
test esi, esi
jle 0x40d485
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x54], eax
mov eax, ebx
mov cl, byte [esp + 0x78]
cdq
idiv esi
mov dl, byte [edi + ebp]
add al, cl
add dl, al
mov byte [edi + ebp], dl
call fcn.00435d39
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 0x40d451
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
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 0x40d42f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40d55e
mov ecx, dword [esp + 0x14]
mov eax, 0x40
sub eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x78]
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 0x40d53b
mov byte [edi + ebp], bl
call fcn.00435d39
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 0x40d51b
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x6c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x6c], eax
jne 0x40d4d5
mov eax, 0x2aaaaaab
mov dword [esp + 0x78], 0x10
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x10
jg 0x40d57d
mov dword [esp + 0x78], 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
cmp edi, ecx
mov dword [esp + 0x6c], eax
jle case.default.0x40d2d8
mov eax, edi
mov edi, dword [esp + 0x78]
cdq
sub eax, edx
mov dword [esp + 0x30], ecx
sar eax, 1
imul edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
jmp 0x40d5c5
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov ebp, ecx
sub edx, edi
sub ebp, eax
xor edi, edi
mov dword [esp + 0x50], edx
test esi, esi
jle 0x40d68a
mov eax, esi
mov dword [esp + 0x34], 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 + 0x78]
mov ebp, esi
sar ecx, 1
mov dword [esp + 0x4c], ecx
sub eax, edx
add eax, ecx
mov dword [esp + 0x40], eax
shl ebp, 7
jmp 0x40d615
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov edx, edi
sub edx, ecx
cmp edx, eax
mov dword [esp + 0x20], edx
jle 0x40d639
mov eax, ebp
mov cl, byte [esp + 0x14]
cdq
idiv dword [esp + 0x78]
mov edx, dword [esp + 0x20]
add al, cl
mov byte [ebx + edi], al
mov eax, dword [esp + 0x40]
add eax, edx
test eax, eax
jge 0x40d651
mov eax, dword [esp + 0x34]
mov cl, byte [esp + 0x2c]
cdq
idiv dword [esp + 0x78]
sub cl, al
mov byte [ebx + edi], cl
call fcn.00435d39
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 + 0x34]
inc edi
add ecx, 0x80
cmp edi, esi
mov dword [esp + 0x34], ecx
jl 0x40d60d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x30]
add ebx, edx
mov edx, dword [esp + 0x78]
add edi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x30], edi
cmp ecx, edx
mov dword [esp + 0x5c], ecx
jl 0x40d5c1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle case.default.0x40d2d8
mov dword [esp + 0x78], 0
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x78]
xor ebp, ebp
cdq
idiv ebx
mov ecx, eax
sub ecx, 0x7f
test esi, esi
jle 0x40d796
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 0x40d762
mov eax, ecx
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x40d76c
mov eax, ecx
mov byte [edi + ebp], al
call fcn.00435d39
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 0x40d71b
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x5c], eax
jne 0x40d6d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
test esi, esi
mov dword [esp + 0x78], 0
jle case.default.0x40d2d8
mov edi, esi
mov ebp, 0x80
shl edi, 8
sub ebp, ecx
sub edi, esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x40], 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 0x40d861
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x10]
lea edi, [ecx + eax]
mov byte [edi], bl
call fcn.00435d39
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x74]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x40d838
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
sub edi, 0xff
inc eax
mov dword [esp + 0x40], edi
cmp eax, esi
mov dword [esp + 0x78], eax
jl 0x40d7e9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
mov edx, dword [esp + 0x10]
test edx, edx
jle case.default.0x40d2d8
mov eax, 0x80
mov dword [esp + 0x78], 0
sub eax, ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
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 0x40d90d
mov byte [edi + ebp], bl
call fcn.00435d39
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 0x40d8ed
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x5c], eax
jne 0x40d8a9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x6c], eax
jle case.default.0x40d2d8
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], ecx
xor ebp, ebp
test esi, esi
jle 0x40d9b8
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x78], 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 + 0x78]
add al, cl
mov byte [edi + ebp], al
call fcn.00435d39
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 0x40d97f
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
add edi, ebx
add edx, eax
dec ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x40], ecx
jne 0x40d95d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle case.default.0x40d2d8
mov dword [esp + 0x78], 0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
xor ebp, ebp
mov ebx, eax
add ebx, ecx
test esi, esi
jle 0x40da32
mov byte [edi + ebp], bl
call fcn.00435d39
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 0x40da12
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
add edi, edx
mov edx, dword [esp + 0x6c]
add ecx, edx
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x5c], eax
jne 0x40d9fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
sub eax, ecx
xor edi, edi
test esi, esi
mov dword [esp + 0x78], edi
jle case.default.0x40d2d8
mov ecx, eax
mov ebp, dword [esp + 0x10]
neg ecx
imul eax, esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
cdq
idiv esi
mov edx, dword [esp + 0x14]
mov ebx, eax
add ebx, edx
test ebp, ebp
jle 0x40dac4
mov eax, dword [esp + 0x5c]
add edi, eax
mov byte [edi], bl
call fcn.00435d39
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x74]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x40da97
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
inc edi
add edx, ecx
cmp edi, esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x6c], edx
jl 0x40da7e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20
mov eax, dword [esp + 0x10]
test eax, eax
jle case.default.0x40d2d8
mov dword [esp + 0x78], eax
xor ebp, ebp
test esi, esi
jle 0x40db09
call fcn.00435d39
cdq
idiv ebx
sub al, byte [esp + 0x70]
add al, 0x80
mov byte [edi + ebp], al
inc ebp
cmp ebp, esi
jl 0x40daf3
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
add edi, ecx
dec eax
mov dword [esp + 0x78], eax
jne 0x40daed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20