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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x24], edi
mov ecx, dword [edi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
sub esi, ecx
sub ebx, edx
cmp esi, 1
mov dword [esp + 0x10], ebx
mov eax, 1
jl 0x40fba0
mov eax, esi
push 8
lea ecx, [edi + 0x5ac]
push 1
push eax
mov dword [esp + 0x54], ecx
call fcn.0040f580
cmp ebx, 1
mov eax, 1
jl 0x40fbc0
mov eax, ebx
push 8
lea ecx, [edi + 0x5f0]
push eax
push 1
mov dword [esp + 0x58], ecx
call fcn.0040f580
push 8
lea ecx, [edi + 0x49c]
push ebx
push esi
mov dword [esp + 0x50], ecx
call fcn.0040f580
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
push 0xf
mov dword [esp + 0x44], 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 + 0x3c], 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 + 0x38], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x58], ecx
mov ecx, ebp
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, edi
shr ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x14], edx
neg ecx
shl eax, 7
shl ebp, 7
shl edi, 7
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add eax, edx
mov ecx, dword [esp + 0x28]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x30]
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x44]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x14]
mov ebx, eax
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
push ebp
push edi
push edx
call fcn.0040f8d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
push ebx
push ebp
push edi
push eax
call fcn.0040f8d0
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040f8d0
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
add ebp, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x54]
add ebx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
add ebp, ecx
mov ecx, dword [esp + 0x30]
inc edi
add ebx, edx
add ecx, eax
cmp edi, 0x81
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
jl 0x40fc81
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
mov eax, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
neg eax
mov dword [esp + 0x48], eax
mov eax, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], 1
neg eax
mov dword [esp + 0x4c], eax
mov eax, ecx
neg eax
mov dword [esp + 0x50], eax
mov eax, edi
shl eax, 7
sub eax, edi
mov dword [esp + 0x1c], eax
mov eax, edx
shl eax, 7
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, ecx
shl eax, 7
sub eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x2c]
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x20]
cdq
and edx, 0x7f
add ecx, 0x49c
add eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x18]
add eax, edx
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov al, byte [esp + 0x14]
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
add al, 0x7f
push ebp
push edi
push eax
mov byte [esp + 0x4c], al
call fcn.0040f8d0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push ebx
push ebp
push edi
push edx
lea ecx, [eax + 0x5ac]
call fcn.0040f8d0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push edi
push ecx
lea ecx, [edx + 0x5f0]
call fcn.0040f8d0
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x50]
add edi, edx
mov edx, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
add ebp, edx
mov edx, dword [esp + 0x44]
inc eax
add ebx, ecx
add edi, edx
cmp eax, 0x81
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
jl 0x40fddc
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x20]
and eax, 0xff
push eax
push ecx
lea ecx, [ebp + 0x49c]
call fcn.0040f6f0
lea edi, [ebp + 0x5ac]
mov ecx, edi
call fcn.0040f6b0
mov ecx, edi
mov ebx, eax
call fcn.00429ed0
xor ecx, ecx
test eax, eax
jle 0x40ff25
mov edx, ecx
and edx, reloc.WS2_32.dll_accept
jns 0x40ff1b
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [ebx + ecx], dl
inc ecx
cmp ecx, eax
jl 0x40ff0c
lea ebx, [ebp + 0x5f0]
mov ecx, ebx
call fcn.0040f6b0
mov ecx, ebx
mov edi, eax
call fcn.0040f6d0
xor ecx, ecx
test eax, eax
jle 0x40ff5c
mov edx, ecx
and edx, reloc.WS2_32.dll_accept
jns 0x40ff50
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [edi], dl
add edi, 4
inc ecx
cmp ecx, eax
jl 0x40ff41
add ebp, 0x49c
mov ecx, ebp
call fcn.0040f6e0
mov ecx, ebp
mov dword [esp + 0x7c], eax
call fcn.0040f6b0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], eax
and ecx, 0xff
mov edi, eax
mov dword [esp + 0x18], ecx
mov ebx, 1
lea eax, [ecx + ecx]
cmp eax, 1
jl 0x40ff97
mov ebx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov edx, dword [esp + 0x70]
mov ebx, eax
mov eax, 0xff
sub eax, ecx
dec edx
cmp edx, 7
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
ja case.default.0x40ffbe
jmp dword [edx*4 + 0x4108b4]
push 0
mov ecx, ebp
call fcn.0040f7e0
mov eax, 0x7fff
mov dword [esp + 0x3c], 0xc8
cdq
idiv esi
mov dword [esp + 0x58], eax
mov eax, 0x7fff
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x54], eax
call fcn.00476778
cdq
idiv dword [esp + 0x58]
mov dword [esp + 0x24], eax
call fcn.00476778
cdq
idiv dword [esp + 0x54]
mov edi, dword [esp + 0x10]
cmp esi, edi
mov ebp, eax
jge 0x410014
mov edi, esi
call fcn.00476778
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.00476778
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 + 0x80], edx
jle 0x4100f1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ebp
sub ecx, ebp
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
test eax, eax
jle 0x4100a3
mov edx, dword [esp + 0x10]
lea eax, [edi + ebp]
cmp eax, edx
jge 0x4100a3
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x28]
sub edx, edi
push edx
lea ecx, [eax + 0x49c]
call fcn.0040f820
mov ecx, dword [esp + 0x70]
lea edx, [ecx + ebp]
add edx, edi
cmp edx, esi
jge 0x4100df
mov eax, dword [esp + 0x74]
test eax, eax
jle 0x4100df
mov eax, dword [esp + 0x80]
mov edx, edi
push eax
mov eax, dword [esp + 0x28]
mov ecx, ebp
sub edx, eax
mov eax, dword [esp + 0x24]
sub ecx, edi
add edx, esi
push ecx
push edx
lea ecx, [eax + 0x49c]
call fcn.0040f820
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
inc edi
dec edx
cmp edi, ebx
mov dword [esp + 0x74], edx
jl 0x41006a
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x40fff0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
sub eax, edx
mov ecx, dword [esp + 0x10]
sub eax, 0x28
mov ebp, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x70], eax
jle 0x410861
mov dword [esp + 0x74], 0
mov dword [esp + 0x3c], ecx
xor edi, edi
test esi, esi
jle 0x41018e
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x58], eax
mov eax, ebx
mov cl, byte [esp + 0x80]
cdq
idiv esi
mov dl, byte [edi + ebp]
add al, cl
add dl, al
mov byte [edi + ebp], dl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov cl, byte [edi + ebp]
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x58]
inc edi
add ebx, ecx
cmp edi, esi
jl 0x410157
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
add ebp, edi
add edx, eax
dec ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x3c], ecx
jne 0x410132
jmp 0x410861
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x41026e
mov ecx, dword [esp + 0x18]
mov eax, 0x40
sub eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x80]
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 + 0x58]
shl eax, 1
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x410245
mov byte [edi + ebp], bl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x410225
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x70], eax
jne 0x4101dc
mov eax, 0x2aaaaaab
mov dword [esp + 0x80], 0x10
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x10
jg 0x410293
mov dword [esp + 0x80], edx
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, edi
xor ecx, ecx
imul eax, edi
cdq
and edx, 3
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 2
test edi, edi
mov dword [esp + 0x70], eax
jle 0x410861
mov eax, edi
mov edi, dword [esp + 0x80]
cdq
sub eax, edx
mov dword [esp + 0x2c], ecx
sar eax, 1
imul edi, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], edi
jmp 0x4102de
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov ebp, ecx
sub edx, edi
sub ebp, eax
xor edi, edi
mov dword [esp + 0x54], edx
test esi, esi
jle 0x4103ac
mov eax, esi
mov dword [esp + 0x30], edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x54]
imul eax, ebp
cdq
idiv dword [esp + 0x70]
mov edx, dword [esp + 0x80]
mov ebp, esi
sar ecx, 1
mov dword [esp + 0x50], ecx
sub eax, edx
add eax, ecx
mov dword [esp + 0x3c], eax
shl ebp, 7
jmp 0x410331
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
mov edx, edi
sub edx, ecx
cmp edx, eax
mov dword [esp + 0x24], edx
jle 0x410358
mov eax, ebp
mov cl, byte [esp + 0x18]
cdq
idiv dword [esp + 0x80]
mov edx, dword [esp + 0x24]
add al, cl
mov byte [ebx + edi], al
mov eax, dword [esp + 0x3c]
add eax, edx
test eax, eax
jge 0x410373
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x28]
cdq
idiv dword [esp + 0x80]
sub cl, al
mov byte [ebx + edi], cl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov dl, byte [esp + 0x74]
mov cl, byte [ebx + edi]
sub ebp, 0x80
sub al, dl
add cl, al
mov byte [ebx + edi], cl
mov ecx, dword [esp + 0x30]
inc edi
add ecx, 0x80
cmp edi, esi
mov dword [esp + 0x30], ecx
jl 0x410329
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x2c]
add ebx, edx
mov edx, dword [esp + 0x80]
add edi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x2c], edi
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x4102da
jmp 0x410861
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x410861
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x80]
xor ebp, ebp
cdq
idiv ebx
mov ecx, eax
sub ecx, 0x7f
test esi, esi
jle 0x4104bc
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 + 0x18]
sar eax, 7
mov dword [esp + 0x58], eax
mov eax, 0x80
sub eax, edx
shl ebx, 8
mov dword [esp + 0x70], 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 + 0x18]
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x58]
sar eax, 7
add eax, edx
imul eax, dword [esp + 0x70]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
add eax, 0x80
cmp eax, ecx
jge 0x410488
mov eax, ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x410492
mov eax, ecx
mov byte [edi + ebp], al
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov dl, byte [esp + 0x74]
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 0x410441
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
jne 0x4103f4
jmp 0x410861
test esi, esi
mov dword [esp + 0x80], 0
jle 0x410861
mov edi, esi
mov ebp, 0x80
shl edi, 8
sub ebp, ecx
sub edi, esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], 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 0x41058e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x10]
lea edi, [ecx + eax]
mov byte [edi], bl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x7c]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x410565
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x80]
sub edi, 0xff
inc eax
mov dword [esp + 0x3c], edi
cmp eax, esi
mov dword [esp + 0x80], eax
jl 0x410513
jmp 0x410861
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x410861
mov eax, 0x80
mov dword [esp + 0x80], 0
sub eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
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 + 0x70]
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x410641
mov byte [edi + ebp], bl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x410621
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
jne 0x4105da
jmp 0x410861
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x70], eax
jle 0x410861
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], ecx
xor ebp, ebp
test esi, esi
jle 0x4106f3
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x70]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x58], eax
mov eax, ebx
mov cl, byte [esp + 0x18]
cdq
idiv esi
add al, byte [esp + 0x80]
add al, cl
mov byte [edi + ebp], al
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov dl, byte [esp + 0x74]
mov cl, byte [edi + ebp]
sub al, dl
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x58]
inc ebp
add ebx, ecx
cmp ebp, esi
jl 0x4106b7
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
add edi, ebx
add edx, eax
dec ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
jne 0x410692
jmp 0x410861
sub eax, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x410861
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
cdq
idiv dword [esp + 0x10]
xor ebp, ebp
mov ebx, eax
add ebx, ecx
test esi, esi
jle 0x41076e
mov byte [edi + ebp], bl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x41074e
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
add edi, edx
mov edx, dword [esp + 0x70]
add ecx, edx
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
jne 0x410734
jmp 0x410861
sub eax, ecx
xor edi, edi
test esi, esi
mov dword [esp + 0x80], edi
jle 0x410861
mov ecx, eax
mov ebp, dword [esp + 0x10]
neg ecx
imul eax, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
cdq
idiv esi
mov edx, dword [esp + 0x18]
mov ebx, eax
add ebx, edx
test ebp, ebp
jle 0x410807
mov eax, dword [esp + 0x14]
add edi, eax
mov byte [edi], bl
call fcn.00476778
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x7c]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x4107d7
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
inc edi
add edx, ecx
cmp edi, esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x70], edx
jl 0x4107be
jmp 0x410861
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x410861
mov dword [esp + 0x80], eax
xor ebp, ebp
test esi, esi
jle 0x41084a
call fcn.00476778
cdq
idiv ebx
sub al, byte [esp + 0x74]
add al, 0x80
mov byte [edi + ebp], al
inc ebp
cmp ebp, esi
jl 0x410834
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
add edi, ecx
dec eax
mov dword [esp + 0x80], eax
jne 0x41082e
mov ebx, dword [esp + 0x20]
lea edi, [ebx + 0x49c]
lea ecx, [ebx + 0x524]
push edi
call fcn.0040f870
lea esi, [ebx + 0x568]
push edi
mov ecx, esi
call fcn.0040f870
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x40]
and ecx, 0xff
push ecx
push edx
mov ecx, esi
call fcn.0040f6f0
push esi
lea ecx, [ebx + 0x4e0]
call fcn.0040f870
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14